/* ==========================================
   KGEU — ENERGY POLL
   Обёртка компонента voting.current
   ========================================== */

[id^="voting_"][id$="_container"],
[id^="voting_"][id$="_form"],
[id^="voting_"][id$="_result"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Стандартный блок результатов */
[id^="voting_"][id$="_result"] {
    background: #ffffff;
    color: #172b4d;
    font-family: Arial, sans-serif;
    padding: 24px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
}

[id^="voting_"][id$="_result"] .vote-form-result {
    background: transparent;
    color: #172b4d;
}

[id^="voting_"][id$="_result"] .vote-question {
    background: #f4f6f9;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 10px;
}

[id^="voting_"][id$="_result"] .vote-question-title {
    color: #142d50;
    font-weight: 700;
}

[id^="voting_"][id$="_result"] .vote-answer {
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
}

[id^="voting_"][id$="_result"] .vote-answer-text {
    color: #24354b;
}

[id^="voting_"][id$="_result"] .vote-answer-percent {
    color: #1856a3;
    font-weight: 700;
}

[id^="voting_"][id$="_result"] .vote-result-bar {
    background: #e4eaf3;
    border-radius: 20px;
    overflow: hidden;
}

[id^="voting_"][id$="_result"] .vote-result-bar .vote-result-bar {
    background: #205ca7;
}

[id^="voting_"][id$="_result"] .vote-form-box-button a {
    display: inline-block;
    padding: 11px 20px;
    background: #edf3fc;
    color: #1856a3;
    border-radius: 8px;
    text-decoration: none;
}

@media (max-width: 600px) {
    [id^="voting_"][id$="_result"] {
        padding: 14px;
    }
}

/* Вкладки администратора */

.energy-poll-page {
    width: 100%;
}

.energy-poll-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e6ef;
}

.energy-poll-tab {
    appearance: none;
    padding: 12px 22px;
    background: #f0f3f8;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #48617e;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.energy-poll-tab:hover {
    background: #e5edf8;
    color: #205a9f;
}

.energy-poll-tab.is-active {
    background: #205a9f;
    color: #ffffff;
}

.energy-poll-tab:focus-visible {
    outline: 3px solid #8fb8f5;
    outline-offset: 2px;
}

.energy-poll-panel[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .energy-poll-tabs {
        gap: 6px;
    }

    .energy-poll-tab {
        flex: 1;
        padding: 11px 12px;
        font-size: 14px;
    }
}
/* Количество ответов во вкладке результатов */

.energy-poll-tab-count {
    display: inline-block;
    margin-left: 7px;
    padding: 3px 8px;

    background: #dce8f7;
    color: #205a9f;

    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.energy-poll-tab.is-active .energy-poll-tab-count {
    background: #ffffff;
    color: #205a9f;
}

/* Сообщение после голосования */

.energy-poll-message {
    padding: 36px 28px;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    text-align: center;
}

.energy-poll-message h2 {
    margin: 0 0 12px;
    font-size: 23px;
    font-weight: 700;
    color: #205a9f;
}

.energy-poll-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}

.energy-poll-message-success {
    border-color: #b8dec9;
    background: #f4fbf7;
}

.energy-poll-message-success h2 {
    color: #257345;
}

@media (max-width: 600px) {
    .energy-poll-message {
        padding: 26px 18px;
    }

    .energy-poll-message h2 {
        font-size: 19px;
    }
}

/* =========================================
   СООБЩЕНИЯ О СОСТОЯНИИ ГОЛОСОВАНИЯ
   ========================================= */

.energy-poll-message {
    margin: 0;
    padding: 42px 28px;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.energy-poll-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e5f4eb;
    color: #267744;
    font-size: 34px;
    font-weight: 700;
}

.energy-poll-message h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #205a9f;
}

.energy-poll-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}

.energy-poll-message-success {
    border-color: #b8dec9;
    background: #f5fbf7;
}

.energy-poll-message-success h2,
.energy-poll-message-voted h2 {
    color: #267744;
}

.energy-poll-message-voted {
    background: #f8fafc;
}

.energy-poll-message-unavailable {
    background: #f8fafc;
}

@media (max-width: 600px) {
    .energy-poll-message {
        padding: 28px 18px;
    }

    .energy-poll-message h2 {
        font-size: 20px;
    }

    .energy-poll-message p {
        font-size: 14px;
    }
}
