/* style_action_2026.css */

/* Общие элементы страницы рассылки */
.form-block {
    margin: 15px 0;
}

.hint {
    margin-top: 20px;
    font-size: 12px;
    color: #777;
}

.test-button {
    background-color: #4a90e2;
}

.test-button:hover {
    background-color: #3b78bd;
}

.success-text {
    color: green;
}

.error-text {
    color: red;
}

.error-list {
    color: #b30000;
}

.back-link {
    margin-top: 20px;
}

/* Оформление email-шаблона (если смотреть в браузере) */

.email-body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
}

.email-wrapper {
    background-color: #f4f4f4;
    padding: 20px 0;
}

.email-container {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.email-header {
    background-color: #b3001b;
    padding: 16px 24px;
    color: #ffffff;
    text-align: center;
}

.email-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.email-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
}

.email-body-inner {
    padding: 24px 28px 8px;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
}

.email-text {
    margin: 10px 0;
}

.email-text:first-child {
    margin-top: 0;
}

.email-text-accent {
    font-size: 16px;
    font-weight: bold;
    margin: 12px 0;
}

.email-text-bold {
    font-weight: bold;
    margin-top: 16px;
}

.email-highlight {
    background-color: #fff6e5;
    border-left: 4px solid #ff9800;
    padding: 10px 12px;
    margin: 16px 0;
    font-size: 14px;
}

.email-list {
    margin: 0 0 16px 18px;
    padding: 0;
}

.email-bottom-text {
    margin-top: 20px;
}

.email-footer {
    padding: 12px 28px 20px;
    font-size: 12px;
    color: #888888;
    border-top: 1px solid #e6e6e6;
}

.email-footer-text {
    margin: 4px 0;
}

/* HNY 2026 popup styles */
.hny-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.hny-popup[aria-hidden="false"], .hny-popup.show {
    display: flex;
}
.hny-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 250ms ease-in-out;
}
.hny-popup.show .hny-popup__overlay,
.hny-popup[aria-hidden="false"] .hny-popup__overlay {
    opacity: 1;
}
.hny-popup__panel {
    position: relative;
    max-width: 520px;
    width: 95%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    transition: transform 300ms cubic-bezier(.2,.8,.2,1), opacity 300ms ease-in-out;
    z-index: 2010;
    overflow: hidden;
}
.hny-popup.show .hny-popup__panel,
.hny-popup[aria-hidden="false"] .hny-popup__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.hny-popup__image img {
    display: block;
    width: 100%;
    height: auto;
}
.hny-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.hny-popup__close:focus { outline: 2px solid #fff; }

/* Панель фильтрации для таблицы отправленных */
.mail-filter-bar {
    margin: 10px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mail-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mail-filter-label {
    font-size: 0.85rem;
    color: #4a5568;
}

.mail-filter-input {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    font-size: 0.85rem;
    min-width: 220px;
}

.mail-filter-button {
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    background: #3182ce;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.mail-filter-button:hover {
    background: #2b6cb0;
}

.mail-filter-reset {
    font-size: 0.8rem;
    color: #718096;
    text-decoration: underline;
}

/* Обёртка таблицы с отправленными */
.mail-table-wrapper {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px 10px 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.mail-table-info {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 6px;
}

/* Скролл для большой таблицы */
.mail-table-scroll {
    max-height: 320px;   /* можно подрегулировать */
    overflow-y: auto;
    overflow-x: auto;
}

/* Таблица отправленных */
.mail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mail-table thead tr {
    background: #edf2f7;
}

.mail-table th,
.mail-table td {
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.mail-table th {
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.mail-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.mail-table-empty {
    text-align: center;
    padding: 12px 8px;
    color: #718096;
}

/* Адаптив под узкие экраны */
@media (max-width: 768px) {
    .mail-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mail-filter-input {
        min-width: 100%;
    }
}


@media (min-width: 900px) {
    .hny-popup__panel { max-width: 500px; }
}

/* HNY Popup Footer */
.hny-popup__footer {
    padding: 16px 20px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #e6e6e6;
}

.hny-popup__details-btn {
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}

.hny-popup__details-btn:hover {
    background: linear-gradient(135deg, #8b0015 0%, #6b000f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 0, 27, 0.4);
}

.hny-popup__details-btn:active {
    transform: translateY(0);
}

/* Action Details Block */
.hny-details {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    background: rgba(0,0,0,0.65);
    animation: fadeInOverlay 250ms ease-in-out;
}

.hny-details.show {
    display: flex;
}

@keyframes fadeInOverlay {
    from { background: rgba(0,0,0,0); }
    to { background: rgba(0,0,0,0.65); }
}

@keyframes slideUpPanel {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hny-details__container {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    overflow-y: auto;
    animation: slideUpPanel 350ms cubic-bezier(.2,.8,.2,1);
}

.hny-details__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 200ms ease-in-out;
}

.hny-details__close:hover {
    background: rgba(0,0,0,0.7);
}

.hny-details__close:focus {
    outline: 2px solid #fff;
}

.hny-details__title {
    margin: 24px 24px 20px;
    padding-top: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.hny-details__content {
    padding: 0 24px 24px;
}

.hny-details__list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.hny-details__list li {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.hny-details__list li:first-child {
    margin-top: 0;
}

.hny-details__list li:last-child {
    margin-bottom: 0;
}
