/* ═══════════════════════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ — cabinet.css
   Отдельный файл для всех стилей кабинета.
   Подключается после site.css.
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. ФОН И ОБЩИЕ КОНТЕЙНЕРЫ
   ───────────────────────────────────────── */

html,
body {
    background-color: #f5f7fa !important;
    color: #212529;
}

#main,
main,
#blog,
.blog,
.container,
.container-fluid {
    background-color: transparent !important;
    background-image: none !important;
}

/* ─────────────────────────────────────────
   2. ХЛЕБНЫЕ КРОШКИ (Breadcrumbs::widget)
   ───────────────────────────────────────── */

.breadcrumbs {
    background: #ffffff;
    border-bottom: none;
    padding: 14px 0 10px;
    min-height: auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    background: transparent;
    line-height: 1.4;
}

.breadcrumb-item {
    color: #4a5568;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    display: inline-block;
    padding: 0 10px;
    color: #b8c0cc;
    font-weight: 400;
}

.breadcrumb-item a {
    color: #7ed957;
    text-decoration: none;
    transition: color .15s;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #4a8f2b;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #101e2f;
    font-weight: 600;
}


/* ─────────────────────────────────────────
   3. КАРТОЧКА КАБИНЕТА
   ───────────────────────────────────────── */

.entry .site-content {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 24px 28px 28px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.entry,
.entries {
    background: transparent !important;
}

/* ─────────────────────────────────────────
   4. КНОПКИ ВЕРХНИЕ
   ───────────────────────────────────────── */

.entry .btn {
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    transition: all 0.25s ease;
    margin: 3px 3px 3px 0;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.entry .btn:hover {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.entry .btn-primary {
    background: linear-gradient(135deg, #3d7bea, #2458b8);
}
.entry .btn-primary:hover {
    box-shadow: 0 6px 18px rgba(61, 123, 234, 0.45);
}

.entry .btn-success {
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
}
.entry .btn-success:hover {
    box-shadow: 0 6px 18px rgba(126, 217, 87, 0.45);
}

.entry .btn-info {
    background: linear-gradient(135deg, #3db1d9, #1b7ea0);
}
.entry .btn-info:hover {
    box-shadow: 0 6px 18px rgba(61, 177, 217, 0.45);
}

.entry .btn-danger {
    background: linear-gradient(135deg, #e45c5c, #b83a3a);
}
.entry .btn-danger:hover {
    box-shadow: 0 6px 18px rgba(228, 92, 92, 0.45);
}

/* ─────────────────────────────────────────
   5. ЕДИНАЯ ШАПКА ТАБЛИЦ
   ───────────────────────────────────────── */

.entry table.table thead th,
.entry table.table > tbody > tr:first-child > th {
    background: #f1f3f5 !important;
    color: #495057 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 12px 8px !important;
    border: none !important;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 2px solid #7ed957 !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    word-break: keep-all;
}

.entry table.table thead th:last-child,
.entry table.table > tbody > tr:first-child > th:last-child {
    border-right: none !important;
}

/* Вторая строка в шапке */
.entry table.table th .th-sub {
    display: block;
    font-size: 9.5px;
    font-weight: 500;
    color: #6c757d !important;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 3px;
    white-space: nowrap;
}

/* ─────────────────────────────────────────
   6. ЯЧЕЙКИ ТАБЛИЦ
   ───────────────────────────────────────── */

.entry table.table tbody td {
    background: #ffffff !important;
    color: #212529 !important;
    padding: 10px 10px !important;
    font-size: 12.5px !important;
    font-weight: 500;
    border: none !important;
    border-bottom: 1px solid #edf0f3 !important;
    border-right: 1px solid #edf0f3 !important;
    vertical-align: middle;
    text-align: center;
}

.entry table.table tbody td:last-child {
    border-right: none !important;
}

.entry table.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Зебра */
.entry table.table-striped tbody tr:nth-of-type(odd) td,
.entry table.table tbody tr:nth-of-type(odd) td {
    background: #f9fafb !important;
}

/* Hover */
.entry table.table tbody tr:hover td {
    background: #eef9e6 !important;
}

/* Первая колонка — зелёный номер */
.entry table.table tbody td:first-child {
    text-align: center !important;
    color: #4a8f2b !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    white-space: nowrap;
}

/* Вторая колонка */
.entry table.table tbody td:nth-child(2) {
    text-align: center !important;
    color: #495057 !important;
    font-size: 12px !important;
}

/* Числовые колонки — справа */
.entry table.table tbody td:nth-child(n+3):not(.saldo-cell) {
    text-align: right !important;
    padding-right: 14px !important;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px !important;
}

/* ─────────────────────────────────────────
   7. КАРТОЧКА СЧЁТА (первая таблица)
   ───────────────────────────────────────── */

.entry > .site-content > table.table:first-of-type {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Шапка карточки счёта */
.entry > .site-content > table.table:first-of-type tbody tr:first-child th,
.entry > .site-content > table.table:first-of-type tbody tr:first-child td {
    background: #f1f3f5 !important;
    color: #495057 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center !important;
    padding: 12px 10px !important;
    border: none !important;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 2px solid #7ed957 !important;
    white-space: nowrap;
}

.entry > .site-content > table.table:first-of-type tbody tr:first-child th:last-child,
.entry > .site-content > table.table:first-of-type tbody tr:first-child td:last-child {
    border-right: none !important;
}

/* Данные карточки счёта */
.entry > .site-content > table.table:first-of-type tbody tr:last-child td {
    background: #ffffff !important;
    color: #212529 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    padding: 14px 10px !important;
    text-align: center !important;
    border: none !important;
    border-right: 1px solid #edf0f3 !important;
    vertical-align: middle;
    word-break: break-word;
}

.entry > .site-content > table.table:first-of-type tbody tr:last-child td:last-child {
    border-right: none !important;
}

.entry > .site-content > table.table:first-of-type tbody tr:last-child td:first-child {
    color: #4a8f2b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.entry > .site-content > table.table:first-of-type tbody tr:last-child td:nth-child(4) {
    color: #495057 !important;
    font-size: 12px !important;
    text-align: left !important;
    padding-left: 12px !important;
}

/* ─────────────────────────────────────────
   8. ПАНЕЛИ «2026» (годы) + ТАБЛИЦЫ КВИТАНЦИЙ
   ───────────────────────────────────────── */

.entry .panel.panel-default {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.entry .panel.panel-default > .panel-heading {
    background: linear-gradient(180deg, #eaf4fb 0%, #dfeefa 100%) !important;
    border: none !important;
    border-bottom: 1px solid #cfe4f5 !important;
    border-left: 4px solid #7ed957 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.entry .panel.panel-default > .panel-heading .panel-title {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
}

.entry .panel.panel-default > .panel-heading .panel-title > a {
    display: block !important;
    color: #2c3e50 !important;
    background: transparent !important;
    padding: 14px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    position: relative;
    transition: color 0.25s;
}

/* Родитель должен быть relative, чтобы ::after позиционировался от него */
.entry .panel.panel-default > .panel-heading .panel-title > a {
    position: relative;
    display: block;               /* растянуть на всю ширину */
    padding-right: 50px;          /* место справа, чтобы текст не наезжал на стрелку */
}

.entry .panel.panel-default > .panel-heading .panel-title > a::after {
    content: '▾';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a8f2b;
    font-size: 12px;
    transition: transform 0.25s;
}

.entry .panel.panel-default > .panel-heading .panel-title > a.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.entry .panel.panel-default > .panel-heading .panel-title > a:hover {
    color: #4a8f2b !important;
}

.entry .panel.panel-default > .panel-collapse {
    background: #ffffff;
    padding: 0;
    margin: 0;
}

.entry .panel-collapse > table.table {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100%;
    background: #ffffff;
}

/* ─────────────────────────────────────────
   9. КНОПКА «КВИТАНЦІЯ»
   ───────────────────────────────────────── */

.entry table.table td a.btn,
.entry table.table td a.btn-sm {
    display: inline-block;
    padding: 5px 10px !important;
    background: transparent !important;
    border: 1px solid #7ed957 !important;
    color: #4a8f2b !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.25s;
    white-space: nowrap;
}

.entry table.table td a.btn:hover {
    background: linear-gradient(135deg, #7ed957, #4a8f2b) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(126, 217, 87, 0.4);
}

/* ─────────────────────────────────────────
   10. САЛЬДО — цвета
   ───────────────────────────────────────── */

.entry table.table td.saldo-cell {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: right !important;
    padding-right: 14px !important;
    font-variant-numeric: tabular-nums;
}

.entry table.table td.saldo-cell.saldo-debt {
    color: #e74c3c !important;
}

.entry table.table td.saldo-cell.saldo-credit {
    color: #3d7bea !important;
}

.entry table.table td.saldo-cell b {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: inherit;
}

/* ─────────────────────────────────────────
   11. СТРАНИЦА /user/select — карточка выбора счёта
   ───────────────────────────────────────── */

.accounts-card {
    max-width: 900px;
    margin: 20px auto 40px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.accounts-card .accounts-title {
    margin: 0;
    padding: 24px 24px 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.02em;
    background: #ffffff;
    border-bottom: 2px solid #7ed957;
    position: relative;
}

.accounts-card .accounts-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #7ed957;
    margin: 12px auto 0;
    border-radius: 2px;
}

.accounts-card .accounts-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #ffffff;
}

.accounts-card .accounts-table thead th,
.accounts-card .accounts-table tr:first-child th {
    background: #f1f3f5 !important;
    color: #495057 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center !important;
    padding: 14px 16px !important;
    border: none !important;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 1px solid #e3e8ef !important;
    white-space: nowrap;
}

.accounts-card .accounts-table thead th:last-child,
.accounts-card .accounts-table tr:first-child th:last-child {
    border-right: none !important;
}

.accounts-card .accounts-table tbody tr:hover,
.accounts-card .accounts-table tr:hover {
    background: #eef9e6 !important;
}

.accounts-card .accounts-table td {
    padding: 14px 16px !important;
    font-size: 13px !important;
    color: #212529 !important;
    vertical-align: middle;
    border: none !important;
    border-bottom: 1px solid #edf0f3 !important;
    border-right: 1px solid #edf0f3 !important;
    background: #ffffff;
}

.accounts-card .accounts-table td:last-child {
    border-right: none !important;
}

.accounts-card .accounts-table tbody tr:last-child td,
.accounts-card .accounts-table tr:last-child td {
    border-bottom: none !important;
}

.accounts-card .accounts-table td.acc-number {
    color: #4a8f2b !important;
    font-weight: 700;
    font-size: 14px !important;
    text-align: center;
    white-space: nowrap;
    width: 130px;
}

.accounts-card .accounts-table td.acc-address {
    color: #495057 !important;
    text-align: left;
    padding-left: 22px !important;
    font-size: 12.5px !important;
}

.accounts-card .accounts-table td.acc-actions {
    width: 130px;
    text-align: center !important;
    padding: 8px 10px !important;
    white-space: nowrap;
}

.accounts-card .accounts-table td.acc-actions .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    margin: 0 2px;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.25s ease;
    box-shadow: none !important;
    text-decoration: none !important;
}

.accounts-card .accounts-table td.acc-actions .btn-success {
    border-color: #7ed957 !important;
    color: #4a8f2b !important;
}

.accounts-card .accounts-table td.acc-actions .btn-success:hover {
    background: linear-gradient(135deg, #7ed957, #4a8f2b) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(126, 217, 87, 0.5) !important;
    transform: translateY(-1px);
}

.accounts-card .accounts-table td.acc-actions .btn-danger {
    border-color: #e45c5c !important;
    color: #b83a3a !important;
}

.accounts-card .accounts-table td.acc-actions .btn-danger:hover {
    background: linear-gradient(135deg, #e45c5c, #b83a3a) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(228, 92, 92, 0.5) !important;
    transform: translateY(-1px);
}

/* Flash-сообщение внутри карточки */
.entry .alert-success {
    max-width: 900px;
    margin: 0 auto 16px;
    border-radius: 10px;
}

/* ─────────────────────────────────────────
   12. МОБИЛЬНАЯ АДАПТАЦИЯ
   ───────────────────────────────────────── */

@media (max-width: 992px) {
    .entry .site-content {
        max-width: 100%;
        padding: 16px 12px 20px;
        border-radius: 10px;
    }

    .entry table.table thead th,
    .entry table.table > tbody > tr:first-child > th {
        font-size: 9px !important;
        padding: 8px 4px !important;
    }

    .entry table.table tbody td {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }

    .entry table.table th .th-sub {
        font-size: 8.5px;
    }

    .entry .btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .accounts-card {
        margin: 12px 8px 24px;
        border-radius: 10px;
    }

    .accounts-card .accounts-title {
        font-size: 18px;
        padding: 18px 16px 12px;
    }

    .accounts-card .accounts-table thead th,
    .accounts-card .accounts-table td {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }

    .accounts-card .accounts-table td.acc-number {
        font-size: 12px !important;
        width: auto;
    }

    .accounts-card .accounts-table td.acc-address {
        padding-left: 10px !important;
        font-size: 11px !important;
    }

    .accounts-card .accounts-table td.acc-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 13px !important;
    }
}

/* ── Расширенная карточка для страниц с таблицами квитанций ── */
body .entry .site-content {
    max-width: 1100px;
}

/* ── Мобильные и планшеты — на всю ширину ── */
@media (max-width: 1200px) {
    body .entry .site-content {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════
   ШАПКА ТАБЛИЦ КВИТАНЦИЙ — гарантированный стиль
   Внутри .panel-collapse / .panel-body шапка тоже должна быть серой
   ═══════════════════════════════════════════════════════ */

/* ── Любая первая строка с <th> в любой таблице кабинета ── */
.entry table.table tr:first-child > th,
.entry table.table thead > tr > th,
.entry table.table thead th,
.entry table.table tbody > tr:first-child > th {
    background: #f1f3f5 !important;
    background-color: #f1f3f5 !important;
    background-image: none !important;
    color: #495057 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 10px 6px !important;
    border: none !important;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 2px solid #7ed957 !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    word-break: keep-all;
}

/* Убираем правую границу у последнего */
.entry table.table tr:first-child > th:last-child {
    border-right: none !important;
}

/* ── Вторая строка шапки (дата / «за Гкал») ── */
.entry table.table tr:first-child > th .th-sub {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: #6c757d !important;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 2px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   ФИНАЛЬНЫЙ ФИКС ШАПОК — все таблицы кабинета, любой структуры
   ═══════════════════════════════════════════════════════ */

/* ── Все <th> в таблицах кабинета — серые, без исключений ── */
.entry table.table th,
.entry .panel-collapse table.table th,
.entry .panel-body table.table th {
    background: #f1f3f5 !important;
    background-color: #f1f3f5 !important;
    background-image: none !important;
    color: #495057 !important;

    font-family: "Open Sans", sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    vertical-align: middle !important;
    line-height: 1.3 !important;

    padding: 10px 6px !important;

    border: none !important;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 2px solid #7ed957 !important;

    white-space: normal !important;
    word-break: keep-all;
}

/* Убираем правую границу у последнего <th> в строке */
.entry table.table th:last-child,
.entry .panel-collapse table.table th:last-child {
    border-right: none !important;
}

/* ── Подпись (дата, «за Гкал» и т.д.) — вторая строка ── */
.entry table.table th .th-sub {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: #6c757d !important;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 2px;
    white-space: nowrap;
}

/* ── Панель «2026» — шапка таблицы прижимается к ней ── */
.entry .panel-collapse > table.table > tbody > tr:first-child > th,
.entry .panel-collapse > table.table > tr:first-child > th {
    border-top: none !important;
}

/* ═══════════════════════════════════════════════════════
   ФИНАЛЬНЫЙ ФИКС — крупнее данные, единый шрифт дат
   ═══════════════════════════════════════════════════════ */

/* ── ДАННЫЕ в таблицах — крупнее ── */
body .entry table.table > tbody > tr > td,
body .entry .panel-collapse table.table > tbody > tr > td,
body .entry > .site-content > table.table:first-of-type > tbody > tr:last-child > td {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 10px !important;
    color: #212529 !important;
}

/* Первая колонка (номер квитанции / послуга) — крупнее */
body .entry table.table > tbody > tr > td:first-child,
body .entry table.table > tbody > tr > td:nth-child(2) {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Числа — крупнее и жирнее */
body .entry table.table > tbody > tr > td:nth-child(n+3):not(.saldo-cell) {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding-right: 14px !important;
}

/* Строка «Всього:» — самая крупная */
body .entry table.table > tbody > tr:last-child > td,
body .entry table.table > tbody > tr:last-child > td b {
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Сальдо — крупное, жирное */
body .entry table.table td.saldo-cell,
body .entry table.table td.saldo-cell.saldo-debt,
body .entry table.table td.saldo-cell.saldo-credit {
    font-size: 15px !important;
    font-weight: 800 !important;
    padding-right: 14px !important;
}

body .entry table.table td.saldo-cell b {
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* ═══════════════════════════════════════════════════════
   ШАПКА — даты и подписи таким же шрифтом, как текст
   ═══════════════════════════════════════════════════════ */

/* Дата «01.10.2026» — крупнее, тем же шрифтом, что данные */
body .entry table.table th .th-sub {
    display: block;
    font-family: "Open Sans", sans-serif !important;
    font-size: 12px !important;              /* было 9px → 12px */
    font-weight: 600 !important;             /* было 500 → 600 */
    color: #212529 !important;               /* было серое → чёрное, как данные */
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    opacity: 1;
}

/* Первая строка шапки (КВИТАНЦІЯ, ПОСЛУГА и т.д.) — оставляем uppercase, но крупнее */
body .entry table.table th,
body .entry .panel-collapse table.table th,
body .entry > .site-content > table.table:first-of-type > tbody > tr:first-child > th,
body .entry > .site-content > table.table:first-of-type > tbody > tr:first-child > td {
    font-size: 11.5px !important;            /* было 10.5px → 11.5px */
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    padding: 12px 6px !important;
    background: #f1f3f5 !important;
    background-color: #f1f3f5 !important;
    background-image: none !important;
    color: #495057 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: none !important;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 2px solid #7ed957 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

/* ── Кнопка «Квитанція» — крупнее ── */
body .entry table.table td a.btn,
body .entry table.table td a.btn-sm {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* ── Мобильная адаптация ── */
@media (max-width: 992px) {
    body .entry table.table > tbody > tr > td {
        font-size: 12px !important;
        padding: 8px 6px !important;
    }

    body .entry table.table th {
        font-size: 10px !important;
        padding: 8px 4px !important;
    }

    body .entry table.table th .th-sub {
        font-size: 10px !important;
        margin-top: 2px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ЧИСЛА — справа, обычные (не жирные)
   ═══════════════════════════════════════════════════════ */

/* ── Все числовые ячейки — справа, обычные ── */
body .entry table.table > tbody > tr > td:nth-child(n+3):not(.saldo-cell),
body .entry .panel-collapse table.table > tbody > tr > td:nth-child(n+3):not(.saldo-cell) {
    text-align: right !important;
    padding-right: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;      /* обычное, не жирное */
    color: #212529 !important;
    font-variant-numeric: tabular-nums;
}

/* ── Сальдо — справа, обычное ── */
body .entry table.table td.saldo-cell,
body .entry table.table td.saldo-cell.saldo-debt,
body .entry table.table td.saldo-cell.saldo-credit {
    text-align: right !important;
    padding-right: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;      /* обычное, не жирное */
    font-variant-numeric: tabular-nums;
}

/* ── ЖИРНЫМ — только итоговая строка «Всього:» ── */
body .entry table.table > tbody > tr:last-child > td,
body .entry table.table > tbody > tr:last-child > td b,
body .entry table.table > tbody > tr:last-child > td strong,
body .entry table.table td.saldo-cell b,
body .entry table.table td.saldo-cell strong {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #212529 !important;
}

/* Сальдо в итоговой строке — красный/синий жирный */
body .entry table.table > tbody > tr:last-child > td.saldo-cell.saldo-debt b {
    color: #e74c3c !important;
    font-weight: 800 !important;
}

body .entry table.table > tbody > tr:last-child > td.saldo-cell.saldo-credit b {
    color: #3d7bea !important;
    font-weight: 800 !important;
}

/* ── Метка «Всього:» — по центру первой колонки ── */
body .entry table.table > tbody > tr:last-child > td:nth-child(2) {
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* ═══════════════════════════════════════════════════════
   САЛЬДО — цвета: долг красный, переплата синяя
   Работает на ячейках с классом .saldo-cell
   ═══════════════════════════════════════════════════════ */

/* Общие стили ячейки */
body .entry table.table td.saldo-cell {
    text-align: right !important;
    padding-right: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    color: #212529 !important;
}

/* Долг — красный */
body .entry table.table td.saldo-cell.saldo-debt {
    color: #e74c3c !important;
}

body .entry table.table td.saldo-cell.saldo-debt b,
body .entry table.table td.saldo-cell.saldo-debt strong {
    color: #e74c3c !important;
    font-weight: 800 !important;
}

/* Переплата — синяя */
body .entry table.table td.saldo-cell.saldo-credit {
    color: #3d7bea !important;
}

body .entry table.table td.saldo-cell.saldo-credit b,
body .entry table.table td.saldo-cell.saldo-credit strong {
    color: #3d7bea !important;
    font-weight: 800 !important;
}

/* ── Итоговая строка «Всього:» — крупнее ── */
body .entry table.table > tbody > tr:last-child > td.saldo-cell {
    font-size: 15px !important;
    font-weight: 700 !important;
}

body .entry table.table > tbody > tr:last-child > td.saldo-cell b,
body .entry table.table > tbody > tr:last-child > td.saldo-cell strong {
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* ═══════════════════════════════════════════════════════
   ГОДЫ (2026, 2025, 2024...) — крупнее и выразительнее
   ═══════════════════════════════════════════════════════ */

/* ── Заголовок панели (год) ── */
body .entry .panel.panel-default > .panel-heading {
    background: linear-gradient(180deg, #eaf4fb 0%, #dfeefa 100%) !important;
    border: none !important;
    border-bottom: 1px solid #cfe4f5 !important;
    border-left: 4px solid #7ed957 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Сам <h4 class="panel-title"> — сбрасываем дефолтные стили */
body .entry .panel.panel-default > .panel-heading .panel-title {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Ссылка с годом — крупнее */
body .entry .panel.panel-default > .panel-heading .panel-title > a {
    display: block !important;
    color: #2c3e50 !important;
    padding: 18px 26px !important;
    font-family: "Open Sans", "Roboto", sans-serif !important;
    font-size: 18px !important;         /* ← было 14px, стало 18px */
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    position: relative;
    transition: color 0.25s;
}

/* Hover */
body .entry .panel.panel-default > .panel-heading .panel-title > a:hover {
    color: #4a8f2b !important;
}

/* Стрелка справа — крупнее */
body .entry .panel.panel-default > .panel-heading .panel-title > a::after {
    content: '▾';
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a8f2b;
    font-size: 16px;                    /* ← было 12px */
    transition: transform 0.25s;
}

/* Если панель свёрнута — стрелка вбок */
body .entry .panel.panel-default > .panel-heading .panel-title > a.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

/* ── Мобильная адаптация ── */
@media (max-width: 768px) {
    body .entry .panel.panel-default > .panel-heading .panel-title > a {
        font-size: 16px !important;
        padding: 14px 18px !important;
    }

    body .entry .panel.panel-default > .panel-heading .panel-title > a::after {
        right: 18px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════
   СТРАНИЦА «ДОДАТИ РАХУНОК» (/user/addaccount)
   ═══════════════════════════════════════════════════════ */

/* ── Карточка ── */
.add-account-card {
    max-width: 560px;
    margin: 20px auto 40px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    padding: 30px 36px 34px;
    box-sizing: border-box;
}

/* ── Шапка ── */
.add-account-header {
    text-align: center;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f3;
    position: relative;
}

.add-account-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #7ed957;
    border-radius: 2px;
}

.add-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #eaf7df, #d5efc0);
    color: #4a8f2b;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(126, 217, 87, 0.25);
}

.add-account-header h2 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
}

.add-account-header p {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* ── Flash ── */
.add-account-alert {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #c0392b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Поля ── */
.add-account-field {
    position: relative;
    margin-bottom: 18px;
}

.add-account-label {
    display: block;
    color: #495057;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    transition: color 0.25s;
}

.add-account-field:focus-within .add-account-label {
    color: #4a8f2b;
}

/* Инпуты */
.add-account-input,
.add-account-form input[type="text"],
.add-account-form input[type="number"],
.add-account-form input[type="email"] {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: #f9fafb;
    border: 1.5px solid #e3e8ef;
    border-radius: 9px;
    color: #212529;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    transition: all 0.25s ease;
    outline: none;
    font-family: "Open Sans", sans-serif;
    height: 46px;
}

.add-account-input::placeholder {
    color: transparent;
}

.add-account-input:hover {
    border-color: #c8d2dc;
}

.add-account-input:focus {
    background: #ffffff;
    border-color: #7ed957;
    box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.15);
}

/* Убираем автозаполнение Chrome */
.add-account-input:-webkit-autofill,
.add-account-input:-webkit-autofill:hover,
.add-account-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #212529;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ── Два поля в строку ── */
.add-account-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.add-account-row .add-account-field {
    margin-bottom: 18px;
}

/* ── Кнопка ── */
.add-account-actions {
    margin-top: 26px;
}

.add-account-submit,
.add-account-form .btn-success {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(126, 217, 87, 0.3);
    font-family: "Open Sans", sans-serif;
}

.add-account-submit:hover,
.add-account-form .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(126, 217, 87, 0.45);
    color: #ffffff;
    text-decoration: none;
}

.add-account-submit:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* ── Мобильная адаптация ── */
@media (max-width: 640px) {
    .add-account-card {
        padding: 24px 20px 26px;
        border-radius: 12px;
        margin: 12px 8px 24px;
    }

    .add-account-header h2 {
        font-size: 19px;
    }

    .add-account-header p {
        font-size: 12px;
    }

    .add-account-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .add-account-row .add-account-field {
        margin-bottom: 18px;
    }

    .add-account-submit {
        padding: 12px 20px;
        font-size: 12.5px;
    }
}

/* ═══ Update password (/user/update) ═══ */

.update-card {
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 30, 47, 0.08);
    padding: 32px 36px 36px;
}

.update-card .update-form {
    margin: 0;
}

/* Лейблы */
.update-label {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Поля ввода */
.update-input {
    width: 100% !important;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    font-size: 15px;
    background: #f9fbfd;
    color: #101e2f;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
}

.update-input:focus {
    border-color: #7ed957;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.22);
    outline: none;
}

/* Отступы между полями */
.update-card .form-group {
    margin-bottom: 18px;
}

/* Ошибки валидации */
.update-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #e74c3c;
}

/* Блок с кнопкой */
.update-actions {
    margin-top: 8px;
    text-align: left;
}

/* Кнопка */
.update-submit {
    background: linear-gradient(180deg, #7ed957, #4a8f2b);
    border: none;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 13px;
    padding: 13px 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: filter .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 12px rgba(74, 143, 43, 0.25);
}

.update-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 16px rgba(74, 143, 43, 0.35);
}

.update-submit:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(74, 143, 43, 0.25);
}

/* ═══ Поле пароля с глазиком ═══ */
.password-wrap {
    position: relative;
    display: block;
}

.password-wrap .update-input {
    padding-right: 46px; /* место под иконку */
}

.toggle-pw {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #8a94a3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color .15s, background .15s;
    line-height: 0;
}

.toggle-pw:hover {
    color: #4a8f2b;
    background: rgba(126, 217, 87, 0.12);
}

.toggle-pw:focus {
    outline: none;
    color: #4a8f2b;
}

/* По умолчанию: пароль скрыт → показываем eye-on (открытый глаз) */
.toggle-pw .eye-off { display: none; }
.toggle-pw .eye-on  { display: inline-flex; }

/* Когда пароль видим → переключаем */
.password-wrap.is-visible .toggle-pw .eye-on  { display: none; }
.password-wrap.is-visible .toggle-pw .eye-off { display: inline-flex; }

/* ═══ Кнопка "Назад" на /user/addaccount ═══ */
.add-account-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: #4a5568;
    text-decoration: none;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: color .15s, background .15s, border-color .15s, transform .1s;
}

.add-account-back:hover {
    color: #4a8f2b;
    background: rgba(126, 217, 87, 0.10);
    border-color: #7ed957;
    text-decoration: none;
}

.add-account-back:active {
    transform: translateX(-1px);
}

.add-account-back svg {
    flex-shrink: 0;
    transition: transform .15s;
}

.add-account-back:hover svg {
    transform: translateX(-2px);
}

/* ═══════════════════════════════════════════════════════
   ФИНАЛЬНЫЙ СЛОЙ — отступы секции кабинета
   (всё, что ниже — единственные правила для #blog и .site-content)
   ═══════════════════════════════════════════════════════ */

/* Перебиваем padding секции кабинета из site.css (60px 0).
   Только для страниц кабинета — через родительский #main. */
#main > section#blog.blog {
    padding-top: 20px;
    padding-bottom: 30px;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* .site-content — карточка уже сама даёт себе отступ.
   Даём только внутренний padding (воздух над кнопками внутри карточки) */
.entry .site-content {
    margin-top: 0;
    margin-bottom: 30px;
}

/* Отключаем возможные полосы от .breadcrumbs */
.breadcrumbs {
    border-top: none;
    border-bottom: none;
    box-shadow: none;
}

/* Карточки кабинета — прижаты к верху, но не вплотную */
.cabinet-card,
.accounts-card,
.update-card,
.add-account-card {
    margin-top: 8px;
}

/* ============================================================
   Админка: список пользователей (/user/adminmode)
   ============================================================ */
.admin-users-card {
    background: #1b2c42;
    border-radius: 12px;
    padding: 16px 18px;
    color: #e8eef5;
}

.admin-users-card .grid-view {
    color: #e8eef5;
    background: transparent;
}

/* Таблица */
.admin-users-card table.table {
    background: #16263a;
    color: #e8eef5;
    border: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 12px;
}

.admin-users-card table.table thead th,
.admin-users-card table.table > tbody > tr:first-child > th {
    background: #101e2f;
    color: #7ed957;
    border-color: rgba(126, 217, 87, .35);
    border-bottom: 2px solid #7ed957;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.admin-users-card table.table tbody td {
    background: transparent;
    color: #e8eef5;
    border-color: rgba(255, 255, 255, .06);
    vertical-align: middle;
}

/* Зебра — перебиваем и BS3 (nth-of-type), и BS4 (nth-child) */
.admin-users-card table.table-striped > tbody > tr:nth-of-type(odd),
.admin-users-card table.table-striped > tbody > tr:nth-child(odd) {
    background: rgba(255, 255, 255, .03);
}

.admin-users-card table.table-striped > tbody > tr:nth-of-type(odd) > td,
.admin-users-card table.table-striped > tbody > tr:nth-child(odd) > td {
    background: transparent;
}

.admin-users-card table.table-hover > tbody > tr:hover,
.admin-users-card table.table-hover > tbody > tr:hover > td {
    background: rgba(126, 217, 87, .08);
}

/* Фильтры (инпуты в шапке таблицы) */
.admin-users-card .form-control {
    background: #0e1b2a;
    border: 1px solid rgba(126, 217, 87, .35);
    color: #e8eef5;
}

.admin-users-card .form-control::placeholder {
    color: rgba(232, 238, 245, .45);
}

.admin-users-card .form-control:focus {
    background: #0e1b2a;
    border-color: #7ed957;
    color: #e8eef5;
    box-shadow: 0 0 0 2px rgba(126, 217, 87, .2);
}

/* Кнопки-иконки в строках таблицы */
.admin-users-card table.table td a.btn,
.admin-users-card table.table td a.btn-sm {
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Пагинация */
.admin-users-card .pagination > li > a,
.admin-users-card .pagination > li > span {
    background: #101e2f;
    border-color: rgba(126, 217, 87, .3);
    color: #e8eef5;
}

.admin-users-card .pagination > .active > a,
.admin-users-card .pagination > .active > span {
    background: #7ed957;
    border-color: #7ed957;
    color: #101e2f;
}

.admin-users-card .pagination > li > a:hover {
    background: rgba(126, 217, 87, .15);
    border-color: #7ed957;
    color: #7ed957;
}

html body .site-content .panel .panel-title > a::after {
    content: "▾" !important;
    position: absolute !important;
    right: 8px !important;              /* ← 20px → 8px — совсем близко к краю */
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #4a8f2b !important;
    font-size: 26px !important;         /* ← 20px → 26px — крупнее */
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: transform 0.25s ease !important;
    z-index: 5 !important;
}

html body .site-content .panel .panel-title > a {
    position: relative !important;
    display: block !important;
    padding-right: 70px !important;     /* ← 60px → 70px — место под стрелку */
}

html body .site-content .panel .panel-title > a.collapsed::after {
    transform: translateY(-50%) rotate(-90deg) !important;
}

@media (max-width: 768px) {
    html body .site-content .panel .panel-title > a::after {
        font-size: 22px !important;
        right: 6px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   СТРАНИЦА ОШИБКИ (404 / 500 / 403...)
   ═══════════════════════════════════════════════════════ */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px 40px;
    min-height: 55vh;
}

.error-card {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(16, 30, 47, 0.08);
    padding: 48px 40px 36px;
    text-align: center;
    box-sizing: border-box;
}

/* Иконка сверху */
.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126, 217, 87, 0.15), rgba(74, 143, 43, 0.08));
    color: #4a8f2b;
    font-size: 46px;
    margin: 0 auto 20px;
    border: 2px dashed rgba(126, 217, 87, 0.5);
}

.error-icon i {
    line-height: 1;
}

/* Большой код ошибки */
.error-code {
    font-family: "Roboto", sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: #101e2f;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0 0 12px;
}

/* Заголовок */
.error-title {
    font-size: 22px;
    font-weight: 700;
    color: #101e2f;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    text-transform: none;
}

/* Описание */
.error-description {
    font-size: 14.5px;
    line-height: 1.65;
    color: #4a5568;
    margin: 0 auto 28px;
    max-width: 460px;
    text-indent: 0;
}

/* Кнопки */
.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    font-family: "Open Sans", sans-serif;
    line-height: 1;
}

.error-btn--primary {
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(126, 217, 87, 0.3);
}

.error-btn--primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 26px rgba(126, 217, 87, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none !important;
}

.error-btn--outline {
    background: transparent;
    color: #4a8f2b !important;
    border-color: rgba(126, 217, 87, 0.5);
}

.error-btn--outline:hover {
    background: rgba(126, 217, 87, 0.08);
    border-color: #7ed957;
    color: #2f6b1a !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.error-btn i {
    font-size: 16px;
    line-height: 1;
}

/* Ссылки внизу */
.error-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid #edf0f3;
    flex-wrap: wrap;
}

.error-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d !important;
    text-decoration: none !important;
    transition: color 0.15s;
    font-weight: 500;
}

.error-links a:hover {
    color: #4a8f2b !important;
}

.error-links a i {
    font-size: 16px;
    line-height: 1;
}

/* Мобильный */
@media (max-width: 640px) {
    .error-card {
        padding: 36px 22px 28px;
        border-radius: 12px;
    }

    .error-icon {
        width: 72px;
        height: 72px;
        font-size: 36px;
        margin-bottom: 16px;
    }

    .error-code {
        font-size: 52px;
    }

    .error-title {
        font-size: 19px;
    }

    .error-description {
        font-size: 13.5px;
    }

    .error-actions {
        flex-direction: column;
        gap: 8px;
    }

    .error-btn {
        justify-content: center;
        width: 100%;
        padding: 11px 18px;
        font-size: 12px;
    }

    .error-links {
        gap: 14px;
        padding-top: 18px;
        flex-direction: column;
        align-items: center;
    }
}


/* ═══════════════════════════════════════════════════════
   КАБИНЕТ — фикс ТОЛЬКО для таблиц квитанций
   (внутри .panel-collapse / .panel-body в панелях годов)
   Не трогаем .accounts-card, .update-card, .add-account-card
   ═══════════════════════════════════════════════════════ */

/* ─── Только таблицы внутри панели квитанции ─── */
body.cabinet-layout .entry .panel-collapse table.table,
body.cabinet-layout .entry .panel-body table.table {
    width: 100% !important;
    min-width: 820px !important;
    max-width: none !important;
    margin: 12px 0 !important;
    font-size: 13px !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}

/* ─── Ячейки внутри квитанций ─── */
body.cabinet-layout .entry .panel-collapse table.table thead th,
body.cabinet-layout .entry .panel-collapse table.table tbody td,
body.cabinet-layout .entry .panel-body table.table thead th,
body.cabinet-layout .entry .panel-body table.table tbody td {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 10px 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
    hyphens: auto !important;
    vertical-align: middle !important;
}

/* ─── Saldo-cell — минимальная ширина ─── */
body.cabinet-layout .entry .panel-collapse table.table td.saldo-cell,
body.cabinet-layout .entry .panel-body table.table td.saldo-cell {
    min-width: 80px !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* ─── Первая колонка (квитанция) — слева ─── */
body.cabinet-layout .entry .panel-collapse table.table tbody td:first-child,
body.cabinet-layout .entry .panel-body table.table tbody td:first-child {
    text-align: left !important;
    width: auto !important;
}

/* ─── Шапки таблиц квитанции ─── */
body.cabinet-layout .entry .panel-collapse table.table thead th,
body.cabinet-layout .entry .panel-body table.table thead th {
    background: #f1f3f5 !important;
    color: #495057 !important;
    border-bottom: 2px solid #7ed957 !important;
    text-transform: uppercase !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
}

/* ─── Overflow только для панели квитанций ─── */
body.cabinet-layout .entry .panel-body {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

/* panel-collapse: не трогаем display — им управляет bootstrap */
body.cabinet-layout .entry .panel-collapse {
    max-width: 100% !important;
}

/* Гарантируем работу collapse — перебиваем каскад */
body.cabinet-layout .entry .panel-collapse.collapse:not(.in) {
    display: none !important;
}

body.cabinet-layout .entry .panel-collapse.collapse.in {
    display: block !important;
}

/* ─── Скроллбар ─── */
body.cabinet-layout .entry .panel-body::-webkit-scrollbar,
body.cabinet-layout .entry .panel-collapse::-webkit-scrollbar {
    height: 10px !important;
}
body.cabinet-layout .entry .panel-body::-webkit-scrollbar-track {
    background: #f1f3f5 !important;
    border-radius: 5px !important;
}
body.cabinet-layout .entry .panel-body::-webkit-scrollbar-thumb {
    background: #7ed957 !important;
    border-radius: 5px !important;
}
body.cabinet-layout .entry .panel-body::-webkit-scrollbar-thumb:hover {
    background: #4a8f2b !important;
}

/* Firefox */
body.cabinet-layout .entry .panel-body,
body.cabinet-layout .entry .panel-collapse {
    scrollbar-width: thin !important;
    scrollbar-color: #7ed957 #f1f3f5 !important;
}

/* ═══════════════════════════════════════════════════════
   ПЕРЕБИТЬ site.css для таблиц КАБИНЕТА
   (site.css имеет селектор html body :not(.entry) .site-content, который
    ошибочно срабатывает для кабинета из-за div.col-lg-12.entries)
   ═══════════════════════════════════════════════════════ */

/* ─── Таблица «Ваші рахунки» (/user/select) — ШАПКА ─── */
html body .entry .site-content .accounts-card .accounts-table thead th,
html body .entry .site-content .accounts-card .accounts-table tr:first-child > th {
    background: #f1f3f5 !important;
    color: #495057 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 12px !important;
    border: none !important;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 2px solid #7ed957 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

html body .entry .site-content .accounts-card .accounts-table thead th:last-child,
html body .entry .site-content .accounts-card .accounts-table tr:first-child > th:last-child {
    border-right: none !important;
}

/* ─── Ячейки ─── */
html body .entry .site-content .accounts-card .accounts-table tbody td {
    padding: 14px 12px !important;
    font-size: 13px !important;
    color: #212529 !important;
    vertical-align: middle !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border: none !important;
    border-bottom: 1px solid #edf0f3 !important;
    border-right: 1px solid #edf0f3 !important;
    background: #ffffff !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-break: normal !important;
}

html body .entry .site-content .accounts-card .accounts-table tbody td:last-child {
    border-right: none !important;
}

html body .entry .site-content .accounts-card .accounts-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ─── Номер рахунку ─── */
html body .entry .site-content .accounts-card .accounts-table tbody td.acc-number,
html body .entry .site-content .accounts-card .accounts-table tbody td:first-child {
    width: 130px !important;
    min-width: 120px !important;
    max-width: 150px !important;
    text-align: center !important;
    color: #4a8f2b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

/* ─── Адрес ─── */
html body .entry .site-content .accounts-card .accounts-table tbody td.acc-address,
html body .entry .site-content .accounts-card .accounts-table tbody td:nth-child(2) {
    text-align: left !important;
    color: #212529 !important;
    padding-left: 16px !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
}

/* ─── Действия ─── */
html body .entry .site-content .accounts-card .accounts-table tbody td.acc-actions,
html body .entry .site-content .accounts-card .accounts-table tbody td:last-child {
    width: 160px !important;
    min-width: 140px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* ─── Hover ─── */
html body .entry .site-content .accounts-card .accounts-table tbody tr:hover td {
    background: #eef7e9 !important;
}

/* ==== Сторінка «Акаунт не активовано» ==== */
.notactive-card {
    max-width: 560px;
    margin: 40px auto 60px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 40px 32px;
    box-shadow: 0 20px 50px -20px rgba(16, 30, 47, 0.18);
    text-align: center;
    border-top: 4px solid #7ed957;
}

.notactive-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(126, 217, 87, 0.12);
    color: #5aa832;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notactive-icon svg {
    width: 36px;
    height: 36px;
}

.notactive-title {
    font-size: 22px;
    font-weight: 700;
    color: #101e2f;
    margin: 0 0 18px;
    letter-spacing: 0.01em;
}

.notactive-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a5a6a;
    margin: 0 0 12px;
}

.notactive-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 26px 0 22px;
    flex-wrap: wrap;
}
.notactive-actions .btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.notactive-actions .btn-success {
    background: #7ed957;
    border: 1px solid #6cc246;
    color: #101e2f;
}
.notactive-actions .btn-success:hover {
    background: #6cc246;
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(126, 217, 87, 0.5);
}
.notactive-actions .btn-outline-success {
    background: transparent;
    border: 1px solid #7ed957;
    color: #4a8c2c;
}
.notactive-actions .btn-outline-success:hover {
    background: #7ed957;
    color: #101e2f;
}

.notactive-help {
    margin-top: 18px;
    padding: 14px 18px;
    background: #f6fbf3;
    border-left: 3px solid #7ed957;
    border-radius: 8px;
    text-align: left;
}
.notactive-help p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #4a5a6a;
}
.notactive-help a {
    color: #4a8c2c;
    font-weight: 600;
    text-decoration: none;
}
.notactive-help a:hover { text-decoration: underline; }

.notactive-footer {
    margin: 22px 0 0;
    font-size: 13px;
}
.notactive-back {
    color: #8f9bb3;
    text-decoration: none;
    transition: color 0.2s;
}
.notactive-back:hover {
    color: #7ed957;
}

@media (max-width: 520px) {
    .notactive-card {
        margin: 20px 12px 40px;
        padding: 28px 20px 22px;
    }
    .notactive-title { font-size: 19px; }
    .notactive-text { font-size: 13.5px; }
}


/* Скроллбар таблицы квитанций — видимый */
body.cabinet-layout .entry .panel-body {
    scrollbar-width: thin;
    scrollbar-color: #7ed957 #e3e8ef;
}

body.cabinet-layout .entry .panel-body::-webkit-scrollbar {
    height: 8px;
    -webkit-appearance: none;
}

body.cabinet-layout .entry .panel-body::-webkit-scrollbar-thumb {
    background: #7ed957;
    border-radius: 4px;
}

body.cabinet-layout .entry .panel-body::-webkit-scrollbar-track {
    background: #e3e8ef;
    border-radius: 4px;
}

body.cabinet-layout .entry .panel-body::-webkit-scrollbar-corner {
    background: #e3e8ef;
}