/* Специфічні стилі модулю treezas_so */

.card-files-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    font-size: 15px !important;
}

.card-files-list li.card-file-item,
.card-files-list li {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 8px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.card-files-list li.card-file-item:hover,
.card-files-list li:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.card-file-main {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.card-file-main .card-file-icon {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    color: #002b49 !important;
    transition: color 0.15s ease !important;
}

.card-file-main:hover .card-file-icon {
    color: #1665d8 !important;
}

.card-files-list li a.card-file-name,
.card-files-list li a {
    color: #002b49 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    word-break: break-word !important;
    transition: color 0.15s ease !important;
}

.card-files-list li a:before,
.card-files-list li a.card-file-name:before,
.card-files-list li a.card-file-btn:before {
    content: none !important;
    display: none !important;
}

.card-files-list li a.card-file-name:hover {
    color: #1665d8 !important;
    text-decoration: underline !important;
}

.card-file-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.card-files-list li a.card-file-btn,
.bundle-doc-actions a.card-file-btn,
a.card-file-btn,
.card-file-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    background-color: #002b49 !important;
    border: 1px solid #002b49 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.card-files-list li a.card-file-btn:hover,
.bundle-doc-actions a.card-file-btn:hover,
a.card-file-btn:hover,
.card-file-btn:hover {
    background-color: #1665d8 !important;
    border-color: #1665d8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(22, 101, 216, 0.25) !important;
    text-decoration: none !important;
}

.card-files-list li a.card-file-btn svg,
.bundle-doc-actions a.card-file-btn svg,
a.card-file-btn svg,
.card-file-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

a.card-file-btn:before,
a.card-file-btn:after,
.card-file-btn:before,
.card-file-btn:after {
    content: none !important;
    display: none !important;
}

.card-attachments-list {
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

div.grouplabel {
    margin-top: 25px !important;
    margin-bottom: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #002b49 !important;
    text-align: left !important;
}

@media (max-width: 576px) {
    .card-files-list li.card-file-item,
    .card-files-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .card-files-list li a.card-file-btn {
        align-self: flex-start !important;
    }
}

/* ==========================================================================
   Кругова діаграма та лічильники результатів поіменного голосування
   ========================================================================== */

.voting-chart-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 36px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px 28px !important;
    margin: 16px 0 24px 0 !important;
    box-sizing: border-box !important;
    max-width: 620px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.voting-donutchart {
    width: 180px !important;
    height: 180px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.voting-donut-svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.voting-donut-center-val {
    font-size: 20px !important;
    font-weight: 700 !important;
    fill: #0f172a !important;
    font-family: inherit !important;
}

.voting-donut-center-lbl {
    font-size: 7.5px !important;
    font-weight: 600 !important;
    fill: #64748b !important;
    font-family: inherit !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.voting-chart-legend {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
}

.voting-stat-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    font-size: 15px !important;
    color: #475569 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.voting-stat-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.voting-stat-row-total {
    color: #0f172a !important;
    font-size: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

.voting-stat-row-total b {
    color: #002b49 !important;
}

.voting-stat-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.voting-stat-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #002b49 !important;
    flex-shrink: 0 !important;
}

.voting-color-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.vote-dot_yes {
    background-color: #16a34a !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2) !important;
}

.vote-dot_no {
    background-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

.vote-dot_abstain {
    background-color: #ea580c !important;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2) !important;
}

.vote-dot_absent {
    background-color: #94a3b8 !important;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2) !important;
}

.voting-stat-val {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.voting-stat-val b {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.voting-stat-sub {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.voting-stat-pct {
    display: inline-block !important;
    padding: 2px 8px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Кольори відповідей у таблиці */
.dep-answer_yes {
    color: #16a34a !important;
    font-weight: 600 !important;
}

.dep-answer_no {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.dep-answer_abstain {
    color: #ea580c !important;
    font-weight: 600 !important;
}

.dep-answer_absent {
    color: #64748b !important;
    font-weight: 600 !important;
}

.dep-voting-table_result {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.dep-voting-table_result thead th,
.dep-voting-table_result th {
    background-color: #f1f5f9 !important;
    color: #002b49 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 14px !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

.dep-voting-table_result td {
    padding: 10px 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
}

.dep-voting-table_result tbody tr:hover {
    background-color: #f8fafc !important;
}

.dep-count-td {
    width: 44px !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background-color: #f8fafc !important;
}

.dep-name {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
}

.dep-fraction {
    font-size: 13px !important;
    color: #64748b !important;
    margin-left: 6px !important;
}

.dep-vote-answer-td {
    width: 160px !important;
    text-align: center !important;
}

.dep-vote-answer {
    display: inline-block !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

@media (max-width: 640px) {
    .voting-chart-card {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 20px 16px !important;
    }

    .voting-donutchart {
        width: 160px !important;
        height: 160px !important;
    }
}

/* ==========================================================================
   Оформлення блоків документів підшивки та пов'язаних документів (.bundle-docs-list)
   ========================================================================== */

.bundle-docs-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

.bundle-doc-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.bundle-doc-header {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    font-family: var(--e-ukraine-font), "e-ukraine", sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #002b49 !important;
    line-height: 1.35 !important;
}

.bundle-doc-number {
    color: #9fadc2 !important;
    font-weight: 400 !important;
    flex-shrink: 0 !important;
}

.bundle-doc-title {
    color: #002b49 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

a.bundle-doc-title:hover {
    color: #1665d8 !important;
    text-decoration: underline !important;
}

.bundle-doc-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 18px 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.15s ease, border-color 0.15s ease !important;
    box-sizing: border-box !important;
}

.bundle-doc-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07) !important;
}

.bundle-doc-card.bundle-doc-card_current {
    border-color: #007be5 !important;
    border: 3px solid #007be5 !important;
}

.bundle-doc-name {
    font-family: var(--e-ukraine-font), "e-ukraine", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: #1e293b !important;
    font-weight: 400 !important;
}

.bundle-doc-name a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.bundle-doc-name a:hover {
    color: #1665d8 !important;
    text-decoration: underline !important;
}

.bundle-doc-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid #f1f5f9 !important;
    flex-wrap: wrap !important;
}

.bundle-doc-source {
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.4 !important;
}

.bundle-doc-source-label {
    font-weight: 700 !important;
    color: #334155 !important;
    margin-right: 4px !important;
}

.bundle-doc-source-val {
    font-style: italic !important;
    color: #64748b !important;
}

.bundle-doc-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.bundle-sheet {
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

@media (max-width: 768px) {
    .card-sheet {
        padding: 18px 16px !important;
    }
}

@media (max-width: 576px) {
    .bundle-doc-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .bundle-doc-actions {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .bundle-doc-actions .card-file-btn {
        align-self: flex-start !important;
    }
}

/* Кнопка «Всі документи у цьому розділі» */
.all-docs-wrapper {
    margin-top: 25px !important;
    margin-bottom: 5px !important;
    display: flex !important;
    justify-content: center !important;
}

.bundle-button.all-docs a,
.all-docs-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #002b49 !important;
    color: #ffffff !important;
    border: 1px solid #002b49 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-family: var(--e-ukraine-font), "e-ukraine", sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 43, 73, 0.16) !important;
    transition: all 0.2s ease !important;
}

.bundle-button.all-docs a:hover,
.all-docs-btn:hover {
    background-color: #1665d8 !important;
    border-color: #1665d8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(22, 101, 216, 0.25) !important;
}

.bundle-button.all-docs a svg,
.all-docs-btn svg {
    width: 15px !important;
    height: 15px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Теги ключових слів у картці документа */
.card-kwords-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 2px 0 !important;
}

a.card-kword-tag,
.card-kword-tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 12px !important;
    font-family: var(--e-ukraine-font), "e-ukraine", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #002b49 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

a.card-kword-tag:hover,
.card-kword-tag:hover {
    color: #ffffff !important;
    background: #002b49 !important;
    border-color: #002b49 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0, 43, 73, 0.15) !important;
}

a.card-kword-tag:before,
a.card-kword-tag:after,
.card-kword-tag:before,
.card-kword-tag:after {
    content: none !important;
    display: none !important;
}

body.dark-theme a.card-kword-tag,
body.dark-theme .card-kword-tag {
    color: #e2e8f0 !important;
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme a.card-kword-tag:hover,
body.dark-theme .card-kword-tag:hover {
    color: #ffffff !important;
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
}



