/* =========================================
   ЛИЧНЫЙ КАБИНЕТ - ПОЛНАЯ ИЗОЛЯЦИЯ ОТ site.css
   ========================================= */

/* --- Каркас (не трогаем шапку и подвал) --- */
.main-content {
    padding-top: 15px !important;
    padding-bottom: 40px !important;
    background-color: #fcfcfc; /* Легкий фон для контента */
}

/* --- ИЗОЛЯЦИЯ КОНТЕНТА --- */
/* Все правила ниже жестко перебивают site.css только внутри кабинета */
.cabinet-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #222 !important;
    line-height: 1.5 !important;
}

/* Заголовки */
.cabinet-wrapper h2,
.cabinet-wrapper h3 {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic !important;
    color: #0d47a1 !important;
    margin-bottom: 25px !important;
    font-size: 2.2rem !important;
    font-weight: normal !important;
    border-bottom: none !important; /* Убираем возможные линии из site.css */
}

/* Верхняя строка (Счет, Адрес, ФИО) */
.cabinet-info-header {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    font-size: 1.3rem !important;
    color: #222 !important;
    background: #fff !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    border: 1px solid #e0e0e0 !important;
}
.cabinet-info-header span {
    font-weight: 600 !important;
}

/* Таблица долгов */
.cabinet-debts-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 35px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.05) !important;
    background: #fff !important;
}

.cabinet-debts-table td {
    padding: 18px 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-top: none !important; /* Перебиваем Bootstrap */
    font-size: 1.25rem !important;
    vertical-align: middle !important;
    background: transparent !important;
}

.cabinet-debts-table tr:last-child td {
    border-bottom: none !important;
}

.cabinet-debts-table .bg-light {
    background-color: #f8f9fa !important;
    text-align: right !important;
    width: 25% !important;
    font-weight: 500 !important;
}

.cabinet-debts-table .text-danger {
    color: #d9534f !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

.cabinet-debts-table .text-success {
    color: #2e7d32 !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

/* Меню навигации */
.cabinet-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 30px !important;
    padding-bottom: 25px !important;
    border-bottom: 1px solid #eee !important;
}

/* Кнопки в меню */
.cabinet-nav .btn {
    border-radius: 40px !important;
    padding: 14px 30px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    box-shadow: none !important; /* Убираем тени Bootstrap */
    text-shadow: none !important;
}

.cabinet-nav .btn.active,
.cabinet-nav .btn-primary {
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(42, 95, 160, 0.3) !important;
    border: none !important;
}

.cabinet-nav .btn-default {
    background-color: #fff !important;
    color: #2a5fa0 !important;
    border: 2px solid #4a7fc1 !important;
}

.cabinet-nav .btn-default:hover {
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Таблицы данных (Послуга, Зареєстровано) */
.cabinet-table {
    width: 100% !important;
    margin-bottom: 40px !important;
    background-color: #fff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(13, 71, 161, 0.08) !important;
    border: none !important; /* Перебиваем Bootstrap */
}

.cabinet-table th {
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    font-size: 1.25rem !important;
    text-align: left !important;
    border: none !important; /* Перебиваем Bootstrap */
}

.cabinet-table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-top: none !important;
    font-size: 1.2rem !important;
    color: #222 !important;
    vertical-align: middle !important;
    background: transparent !important;
}

.cabinet-table tr:last-child td {
    border-bottom: none !important;
}

.cabinet-table tr:nth-child(even) {
    background-color: #f8fafc !important;
}

/* =========================================
   ВЕРХНЕЕ МЕНЮ (Админка, Выход) - ФИНАЛЬНАЯ ПРАВКА
   ========================================= */

.top-navbar {
    background: #0d47a1 !important;
    border-bottom: 2px solid #2a5fa0 !important;
    padding: 5px 0 !important;
    position: relative !important;
}

/* Обнуляем отступы у контейнера, чтобы он был во всю ширину */
.top-navbar .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important; /* Убираем ограничение ширины, если оно есть */
}

/* Прижимаем меню к правому краю */
.top-navbar .navbar-collapse {
    padding-right: 0 !important;
    padding-left: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: flex-end !important; /* Прижимаем содержимое вправо */
}

/* Сбрасываем float и делаем flex-контейнер для пунктов */
.top-navbar .navbar-nav.navbar-right {
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important; /* Расстояние между Админкой и Выходом */
}

.top-navbar .navbar-nav > li {
    float: none !important;
    margin: 0 !important;
}

/* Стили ссылок */
.top-navbar .navbar-nav > li > a {
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
    background: transparent !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    margin: 0 !important;
}

/* Эффекты наведения и фокуса */
.top-navbar .navbar-nav > li > a:hover,
.top-navbar .navbar-nav > li > a:focus,
.top-navbar .navbar-nav > li.open > a {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Одинарная стрелочка */
.top-navbar .navbar-nav > li > a .caret {
    margin-left: 8px !important;
    border-top-color: #fff !important;
}

/* Выпадающее меню */
.top-navbar .dropdown-menu {
    background-color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
    right: 0 !important;
    left: auto !important;
    border: none !important;
}

.top-navbar .dropdown-menu > li > a {
    font-size: 1.15rem !important;
    color: #333 !important;
    padding: 12px 25px !important;
    background: transparent !important;
}

.top-navbar .dropdown-menu > li > a:hover {
    background-color: #f0f4f9 !important;
    color: #0d47a1 !important;
}

/* Кнопка "Выход" */
.top-navbar .logout-btn {
    color: #ffcdd2 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

.top-navbar .logout-btn:hover {
    color: #fff !important;
    background-color: rgba(217, 83, 79, 0.3) !important;
}

/* =========================================
   ИНФО-БЛОК В ОДНУ СТРОКУ - ОБЛАГОРАЖЕННЫЙ
   ========================================= */

.cabinet-info-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%) !important; /* Легкий градиент */
    padding: 15px 30px !important;
    border-radius: 12px !important;
    border: 1px solid #dce8f5 !important;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.08) !important;
}

/* --- Счет --- */
.info-account {
    font-size: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #e3f2fd !important; /* Голубой фон */
    padding: 10px 20px !important;
    border-radius: 30px !important;
    border: 1px solid #bbdefb !important;
    color: #555 !important;
    white-space: nowrap !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}

.info-account .label-text {
    font-weight: 600 !important;
    color: #555 !important;
}

.info-account .value-text {
    font-weight: 800 !important;
    color: #0d47a1 !important;
    font-size: 1.35rem !important;
    letter-spacing: 1px !important;
}

/* --- Адрес --- */
.info-address {
    font-size: 1.25rem !important;
    color: #333 !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-grow: 1 !important; /* Растягивает блок */
    justify-content: center !important; /* Центрирует текст внутри свободного места */
    white-space: nowrap !important;
}

.info-address .label-text {
    font-weight: 600 !important;
    color: #777 !important;
}

.info-address .glyphicon {
    font-size: 1.3rem !important;
    color: #4a7fc1 !important; /* Синяя иконка */
}

/* --- ФИО --- */
.info-name {
    font-size: 1.25rem !important;
    color: #0d47a1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    text-align: right !important;
}

.info-name .glyphicon {
    font-size: 1.3rem !important;
    color: #4a7fc1 !important; /* Синяя иконка */
}

/* =========================================
   КАРТОЧКИ ЛИЧИЛЬНИКОВ (ТАБЛИЦА ПОКАЗАТЕЛЕЙ)
   ========================================= */

.meter-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.08);
    border: 1px solid #dce8f5;
    margin-bottom: 25px;
    overflow: hidden;
}

.meter-card-header {
    background: #f4f8ff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dce8f5;
}

.meter-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d47a1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-status {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #c8e6c9;
}

.meter-status.inactive {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.meter-card-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.meter-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meter-info-label {
    font-size: 1rem;
    color: #777;
    font-weight: 500;
}

.meter-info-value {
    font-size: 1.2rem;
    color: #222;
    font-weight: 600;
}

.meter-card-footer {
    background: #fcfcfc;
    padding: 10px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.meter-expand-btn {
    display: inline-block;
    color: #2a5fa0;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none !important;
    cursor: pointer;
}

.meter-expand-btn:hover {
    color: #0d47a1;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .meter-card-body {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   КНОПКА "ПЕРЕДАТИ ПОКАЗНИКИ"
   ========================================= */

.btn-transfer-meters {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 18px 45px !important; /* Крупные отступы */
    border-radius: 50px !important;
    font-size: 1.3rem !important; /* Крупный шрифт */
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-bottom: 30px !important;
    box-shadow: 0 6px 20px rgba(42, 95, 160, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-transfer-meters:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(42, 95, 160, 0.6) !important;
    color: #fff !important;
}

/* =========================================
   СОВРЕМЕННЫЙ СПИСОК ПОКАЗАНИЙ (TIMELINE)
   ========================================= */

/* Плашка года */
.year-accordion {
    background: #fff !important;
    border: 1px solid #dce8f5 !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(13, 71, 161, 0.04) !important;
}

.year-accordion-header {
    padding: 15px 20px !important;
    background: #f4f8ff !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0d47a1 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
}

.year-accordion-header:hover {
    background: #e8f0fe !important;
}

.year-accordion-header[aria-expanded="true"] {
    border-bottom-color: #dce8f5 !important;
}

/* Список показаний */
.indications-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.indications-list li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important; /* Увеличили отступы */
    border-bottom: 1px dashed #e0e0e0 !important;
}

.indications-list li:last-child {
    border-bottom: none !important;
}

.indications-list li:hover {
    background: #fafbfc !important;
}

/* Дата */
.ind-date {
    font-size: 1.15rem !important; /* Было меньше */
    font-weight: 600 !important;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ind-date .glyphicon {
    color: #4a7fc1 !important; /* Синяя иконка */
    font-size: 1.1rem !important;
}

/* Значение */
.ind-value {
    font-size: 1.3rem !important;
    color: #0d47a1 !important;
    font-weight: 800 !important;
    background: #f0f6ff !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    border: 1px solid #bbdefb !important;
}

/* =========================================
   ФОРМА ВВОДА ПОКАЗАНИЙ
   ========================================= */

.indication-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important; /* 3 равные колонки */
    align-items: center !important;
    background: #f9fbff !important;
    border: 1px solid #dce8f5 !important;
    border-radius: 12px !important;
    padding: 20px 25px !important; /* Чуть больше отступы для воздуха */
    margin-bottom: 20px !important;
    gap: 20px !important;
}

/* Левая колонка (Инфо о счетчике) */
.ind-row-info {
    font-size: 1.15rem !important;
    color: #0d47a1 !important;
    text-align: left !important;
}

.ind-row-info b {
    font-size: 1.3rem !important; /* Увеличили номер счетчика */
    display: inline-block;
    margin-bottom: 5px;
}

.ind-row-info small {
    font-size: 1.05rem !important; /* Увеличили текст места установки */
    color: #555 !important;
}

/* Центральная колонка (Поле ввода) */
.ind-row-input {
    text-align: center !important;
}

.ind-input {
    height: 60px !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #0d47a1 !important;
    border: 2px solid #4a7fc1 !important;
    border-radius: 10px !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05) !important;
    background: #fff !important;
}

.ind-input:focus {
    border-color: #2e7d32 !important;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.2) !important;
    outline: none !important;
}

/* Правая колонка (Прошлые показания) */
.ind-row-last {
    text-align: right !important;
    color: #333 !important;
}

.ind-row-last small {
    font-size: 1.05rem !important; /* Увеличили "Останні показники:" */
    color: #555 !important;
    font-weight: 500 !important;
}

.ind-row-last b {
    font-size: 1.7rem !important; /* Сделали сами цифры очень крупными */
    color: #0d47a1 !important;
    display: inline-block;
    margin-top: 5px;
}

.ind-row-last span {
    font-size: 1.05rem !important; /* Увеличили дату в скобках */
    color: #777 !important;
}

/* Адаптив для мобильных (чтобы не сжималось в одну строку) */
@media (max-width: 768px) {
    .indication-row {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 15px !important;
    }
    .ind-row-info, .ind-row-last {
        text-align: center !important;
    }
    .ind-row-last b {
        font-size: 1.5rem !important;
    }
}

/* =========================================
   СТИЛИ ДЛЯ ОПЛАТЫ (КНОПКИ БАНКОВ)
   ========================================= */

.bank-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 25px !important;
    border-radius: 10px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    min-width: 220px !important; /* Чтобы кнопки были одинаковой ширины */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

.bank-btn img {
    height: 25px !important; /* Выравниваем логотипы */
    margin-right: 12px !important;
}

/* Ощадбанк - зеленый */
.bank-btn-oshad {
    background-color: #fff !important;
    color: #006b3f !important;
    border-color: #006b3f !important;
}

.bank-btn-oshad:hover {
    background-color: #006b3f !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(0, 107, 63, 0.3) !important;
    transform: translateY(-2px);
}

/* ПриватБанк - салатовый */
.bank-btn-privat {
    background-color: #fff !important;
    color: #57b345 !important;
    border-color: #57b345 !important;
}

.bank-btn-privat:hover {
    background-color: #57b345 !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(87, 179, 69, 0.3) !important;
    transform: translateY(-2px);
}

/* =========================================
   ОФОРМЛЕНИЕ ДОКУМЕНТА (БЛАНК)
   ========================================= */

.document-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(13, 71, 161, 0.08);
    border: 1px solid #dce8f5;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin-top: 20px;
}

/* Шапка бланка */
.doc-header {
    margin-bottom: 30px;
}

.doc-header-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.doc-dodatok {
    text-align: right;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.doc-header-middle {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #0d47a1;
    border-bottom: 2px solid #0d47a1;
    padding: 15px 0;
    font-size: 1.15rem;
    color: #0d47a1;
    margin-bottom: 30px;
}

/* Подпись внизу */
.doc-footer-sign {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
    font-size: 1.15rem;
    color: #0d47a1;
}

/* =========================================
   УПРАВЛЕНИЕ ПРОФИЛЕМ (СПИСОК СЧЕТОВ)
   ========================================= */

/* Карточка управления профилем (Email и кнопки) */
.profile-actions-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    border: 1px solid #dce8f5;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-email {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0d47a1;
}

.profile-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-buttons .btn {
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Сетка карточек счетов */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Карточка счета */
.account-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dce8f5;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.account-card-header {
    background: #f4f8ff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dce8f5;
}

.acc-num {
    background: #4a7fc1;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.acc-number {
    font-size: 1.2rem;
    color: #0d47a1;
}

.account-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acc-info-row {
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.acc-info-row .glyphicon {
    margin-top: 3px;
}

.account-card-footer {
    padding: 15px 20px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-act {
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 1rem;
}

/* =========================================
   ФОРМА ДОБАВЛЕНИЯ СЧЕТА
   ========================================= */

.form-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.08);
    border: 1px solid #dce8f5;
    max-width: 800px; /* Ограничиваем ширину, чтобы не растягивалась на весь экран */
    margin: 0 auto; /* Центрируем */
}

.form-card-title {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #0d47a1;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.form-card-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 30px;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.custom-input {
    height: 55px !important;
    font-size: 1.2rem !important;
    padding: 10px 20px !important;
    border: 2px solid #dce8f5 !important;
    border-radius: 10px !important;
    background-color: #f9fbff !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.custom-input:focus {
    border-color: #4a7fc1 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(74, 127, 193, 0.15) !important;
    outline: none !important;
}

/* Отступы между полями */
.form-card .form-group {
    margin-bottom: 25px !important;
}

.form-actions {
    margin-top: 30px;
    text-align: left; /* Кнопка слева, как в оригинале */
}

/* =========================================
   ФОРМА РЕГИСТРАЦИИ/ОБНОВЛЕНИЯ (GRID)
   ========================================= */

.users-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin-top: 20px;
}

.user-create-form-fields {
    /* Левая колонка */
}

.user-create-tips {
    /* Правая колонка */
}

/* Поля ввода */
.custom-input {
    height: 55px !important;
    font-size: 1.2rem !important;
    padding: 10px 20px !important;
    border: 2px solid #dce8f5 !important;
    border-radius: 10px !important;
    background-color: #f9fbff !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.custom-input:focus {
    border-color: #4a7fc1 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(74, 127, 193, 0.15) !important;
    outline: none !important;
}

/* Обертка для поля пароля с иконкой */
.password-wrapper {
    position: relative !important;
    width: 100% !important;
}

.password-wrapper .custom-input {
    padding-right: 50px !important; /* Оставляем место для иконки */
}

.password-wrapper .toggle-password {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    color: #4a7fc1 !important;
    font-size: 1.3rem !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.password-wrapper .toggle-password:hover {
    color: #0d47a1 !important;
}

/* Подсказки справа */
.tip-box {
    background-color: #fff9e6 !important;
    border: 1px solid #ffeaa7 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(240, 184, 0, 0.08) !important;
}

.tip-box b {
    color: #c27800 !important;
    font-size: 1.15rem !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.tip-box p {
    font-size: 1rem !important;
    color: #555 !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .users-form {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   ФОН НА ВЕСЬ ЭКРАН (КАПЛИ)
   ========================================= */

/* 1. Задаем фон для всего тела страницы */
body {
    /* Нежный голубой цвет */
    background-color: #f4f8fb !important;

    /* Накладываем картинку */
    background-image: url('/images/water-drops.png') !important;
    background-repeat: repeat !important;
    background-position: center top !important;
    background-size: 400px !important;
}

/* 2. Сбрасываем фон у main-content, чтобы он был прозрачным (сквозь него будет видно body) */
main.main-content {
    background-color: transparent !important;
    background-image: none !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
    min-height: calc(100vh - 300px) !important;
}

/* 3. Делаем карточку входа чуть более контрастной, чтобы она не сливалась с каплями */
.site-login {
    background-color: rgba(255, 255, 255, 0.95) !important; /* Почти непрозрачный белый */
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.1) !important;
    border: 1px solid #dce8f5 !important;
    backdrop-filter: blur(5px); /* Легкое размытие фона под карточкой */
}

/* =========================================
   СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ (ALERTS)
   ========================================= */

/* Общие стили для алертов */
.alert {
    border-radius: 12px !important;
    padding: 20px 25px !important;
    font-size: 1.15rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 25px !important;
    position: relative !important;
    border: none !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

/* Иконка для алертов */
.alert::before {
    font-family: 'Glyphicons Halflings' !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

/* ОШИБКА (Красный) */
.alert-danger {
    background-color: #fdf3f4 !important; /* Светло-розовый фон */
    color: #721c24 !important; /* Темно-красный текст */
    border-left: 5px solid #d9534f !important; /* Красная полоса слева */
}

.alert-danger::before {
    content: "\e088" !important; /* Иконка восклицательного знака */
    color: #d9534f !important;
}

/* УСПЕХ (Зеленый) */
.alert-success {
    background-color: #f0fdf4 !important; /* Светло-зеленый фон */
    color: #155724 !important; /* Темно-зеленый текст */
    border-left: 5px solid #2e7d32 !important; /* Зеленая полоса слева */
}

.alert-success::before {
    content: "\e013" !important; /* Иконка галочки */
    color: #2e7d32 !important;
}

/* ВНИМАНИЕ (Желтый) */
.alert-warning {
    background-color: #fff9e6 !important;
    color: #856404 !important;
    border-left: 5px solid #f0b800 !important;
}

.alert-warning::before {
    content: "\e107" !important; /* Иконка предупреждения */
    color: #f0b800 !important;
}

/* Убираем лишние отступы у параграфов внутри алертов */
.alert p, .alert h4 {
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* =========================================
   СТИЛИ ДЛЯ JS-АЛЕРТОВ (КАСТОМНЫЕ)
   ========================================= */

#js-error-alert {
    background-color: #fdf3f4 !important;
    color: #721c24 !important;
    border-left: 5px solid #d9534f !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.1) !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    animation: fadeInDown 0.3s ease;
}

/* Иконка */
#js-error-alert .alert-icon {
    font-size: 1.8rem !important;
    color: #d9534f !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

/* Контент (текст) */
#js-error-alert .alert-content {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    flex: 1 !important; /* Занимает всё оставшееся место */
}

#js-error-alert .alert-content b {
    font-size: 1.25rem !important;
    color: #d9534f !important;
    display: block;
    margin-bottom: 5px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   СОВРЕМЕННЫЙ ЛОАДЕР (СПИННЕР)
   ========================================= */

.modern-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 5px solid #e3f2fd; /* Светло-голубая основа */
    border-top: 5px solid #0d47a1; /* Темно-синий вращающийся элемент */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   РЕЗУЛЬТАТ РАСЧЕТА (КВИТАНЦИЯ)
   ========================================= */

.payment-result-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #dce8f5;
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04);
    padding: 50px 30px;
    text-align: center;
    max-width: 650px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

/* Декоративная синяя полоса сверху */
.payment-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #4a7fc1, #0d47a1);
}

.payment-result-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-result-label .glyphicon {
    color: #4a7fc1;
    font-size: 1.4rem;
}

.payment-result-amount {
    font-size: 4.5rem; /* Огромная сумма */
    font-weight: 800;
    color: #0d47a1;
    line-height: 1;
    text-shadow: 3px 3px 10px rgba(13, 71, 161, 0.15);
    letter-spacing: -1px;
}

.payment-result-amount .currency {
    font-size: 1.8rem;
    font-weight: 600;
    color: #888;
    margin-left: 10px;
    text-shadow: none;
}

/* Плашка с информацией снизу */
.payment-info-note {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 1.05rem;
    padding: 15px 25px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #c8e6c9;
}

.payment-info-note .glyphicon {
    font-size: 1.3rem;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .payment-result-amount {
        font-size: 3rem;
    }
    .payment-result-card {
        padding: 30px 15px;
        margin: 20px 10px;
    }
}

/* =========================================
   ПЛАШКА НОВЫХ ПОКАЗАНИЙ (ТЕМНО-СИНИЙ СТИЛЬ)
   ========================================= */

.new-ind-badge {
    /* Темно-синий градиент, как у основного меню */
    background: linear-gradient(90deg, #2a5fa0, #0d47a1) !important;
    color: #ffffff !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    margin: 15px 0 25px 0 !important;
    text-align: center !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    /* Мягкая тень, чтобы плашка "парила" */
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.25) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    border: 1px solid #0d47a1 !important;
    line-height: 1.5 !important;
}

.new-ind-badge .glyphicon {
    font-size: 1.5rem !important;
    color: #a4c2f4 !important; /* Светло-голубая иконка */
}

/* Выделяем сами цифры показаний внутри плашки */
.new-ind-badge b {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.15) !important; /* Легкая стеклянная подложка */
    padding: 4px 12px !important;
    border-radius: 8px !important;
    margin: 0 5px !important;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА "РЕГЛАМЕНТНІ РОБОТИ"
   ========================================= */

/* Само окно */
#worlst .modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
}

/* Шапка окна */
#worlst .modal-header {
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    border-bottom: none !important;
    padding: 20px 25px !important;
    position: relative;
}

/* Заголовок */
#worlst .modal-title {
    font-family: 'Georgia', serif !important;
    font-style: italic !important;
    font-size: 1.8rem !important;
    font-weight: normal !important;
    color: #fff !important;
    margin: 0 !important;
}

/* Кнопка закрытия (крестик) */
#worlst .close {
    color: #fff !important;
    opacity: 0.8 !important;
    font-size: 2rem !important;
    font-weight: 300 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    margin-top: -5px;
}

#worlst .close:hover {
    opacity: 1 !important;
    transform: rotate(90deg) !important; /* Крутится при наведении */
}

/* Тело окна */
#worlst .modal-body {
    padding: 30px 25px !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background: #fff !important;
}

/* Кнопка "Ознайомлен(а)" или "Закрити" */
#worlst .modal-footer {
    border-top: 1px solid #eee !important;
    padding: 15px 25px !important;
    background: #f9fbff !important;
}

#worlst .modal-footer .btn {
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#worlst .modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 95, 160, 0.4) !important;
}

/* =========================================
   БЛАГОРОДНЫЙ БЛОК ДОЛГОВ
   ========================================= */

.cabinet-debts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.debt-item {
    background: #ffffff;
    border: 1px solid #dce8f5;
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.04);
    transition: all 0.3s ease;
}

.debt-item:hover {
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.08);
    transform: translateY(-2px);
}

.debt-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.debt-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d47a1;
}

.debt-last-payment {
    font-size: 1rem;
    color: #777;
}

.debt-amount {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: right;
}

.debt-amount .text-danger {
    color: #d9534f !important;
    background: #fdf3f4;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.debt-amount .text-success {
    color: #2e7d32 !important;
    background: #e8f5e9;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
    .debt-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .debt-amount {
        text-align: left;
    }
}

/* =========================================
   БЛАГОРОДНЫЙ БЛОК ДОЛГОВ
   ========================================= */

/* ... (остальные стили остаются без изменений) ... */

/* Текст "Остання оплата" */
.debt-last-payment {
    font-size: 1.15rem !important; /* Увеличили размер */
    color: #666 !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Сама сумма последней оплаты (выделяем цветом) */
.last-payment-amount {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #2e7d32 !important; /* Зеленый цвет, так как это успешная оплата */
    background: #e8f5e9 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #c3e6cb !important;
    display: inline-block;
    margin-left: 5px;
}

/* =========================================
   РАЗДЕЛЕНИЕ МЕСЯЦЕВ В ИСТОРИИ
   ========================================= */

/* Находим ячейку с датой (первая колонка) */
.cabinet-table td:first-child[rowspan] {
    background-color: #f4f8ff !important; /* Легкий голубой фон для колонки с датой */
    border-right: 2px solid #dce8f5 !important; /* Вертикальная линия справа */
}

/* Добавляем жирную линию сверху для каждого нового месяца */
.cabinet-table tr:has(td[rowspan]) {
    border-top: 3px solid #4a7fc1 !important; /* Синяя жирная линия */
}

/* Если браузер не поддерживает :has(), используем альтернативный способ через ячейку */
.cabinet-table td[rowspan] {
    border-top: 3px solid #4a7fc1 !important;
}
.month-row td {
    border-top: 3px solid #4a7fc1 !important;
}
/* =========================================
   КНОПКА КВИТАНЦИИ В ИСТОРИИ
   ========================================= */

/* Стили для ссылки-квитанции */
.cabinet-table a[href*="receipt"] {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    color: #2a5fa0 !important;
    border: 2px solid #4a7fc1 !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 8px;
}

.cabinet-table a[href*="receipt"]:hover {
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 95, 160, 0.3);
}

.cabinet-table a[href*="receipt"] .glyphicon {
    margin-right: 5px;
}

/* Общий стиль для всех числовых ячеек */
.num-cell {
    font-size: 1.3rem !important; /* Крупный размер */
    font-weight: 700 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: right !important; /* Все числа по правому краю */
    white-space: nowrap !important;
}

/* Зеленый цвет для переплаты (входящее/исходящее сальдо) */
.num-cell.val-green {
    color: #2e7d32 !important;
}

/* Красный цвет для долга */
.num-cell.val-red {
    color: #d9534f !important;
}

/* Ссылки-цифры (кликабельные) */
.num-cell .link-num {
    color: #0d47a1 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}
.num-cell .link-num:hover {
    color: #2a5fa0 !important;
}
.num-cell .link-num-green {
    color: #2e7d32 !important;
}

/* Заглушки — для новых колонок */
.num-cell.col-meter {
    color: #ccc !important;
    font-size: 1.2rem !important;
    text-align: center !important;
}

/* Названия услуг */
.service-title-cell {
    font-size: 1.05rem !important;
    line-height: 1.4;
    color: #666 !important;
    text-align: left !important;
}

/* =========================================
   СВЕТЛАЯ ШАПКА МОДАЛЬНОГО ОКНА
   ========================================= */

.modal-header {
    background: #ffffff !important; /* Белый фон */
    border-bottom: 2px solid #4a7fc1 !important; /* Синяя полоса снизу */
    padding: 20px 25px !important;
    border-radius: 16px 16px 0 0 !important;
}

.modal-header .modal-title,
.modal-header h4 {
    color: #0d47a1 !important; /* Синий текст */
    font-family: 'Georgia', serif !important;
    font-style: italic !important;
    font-size: 1.6rem !important;
    font-weight: normal !important;
    margin: 0 !important;
}

/* Кнопка закрытия (крестик) */
.modal-header .close {
    color: #4a7fc1 !important;
    opacity: 1 !important;
    font-size: 2rem !important;
    font-weight: 300 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    margin-top: -5px;
}

.modal-header .close:hover {
    color: #d9534f !important; /* Красный при наведении */
    transform: rotate(90deg) !important;
}

/* Само окно (чтобы убрать старую тень и сделать скругления) */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
}

/* Тело окна (чтобы фон был белым, а не серым) */
.modal-body {
    background: #fcfcfc !important;
    padding: 30px !important;
}

/* =========================================
   ГРУППА ПЛАВАЮЩИХ КНОПОК (СТЕК)
   ========================================= */

.floating-actions {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;

    display: flex !important;
    flex-direction: column !important; /* Выстраиваем в столбик */
    align-items: flex-end !important;  /* Прижимаем к правому краю */
    gap: 15px !important;              /* Одинаковое расстояние */
}

/* Жестко сбрасываем позиционирование для старых кнопок внутри контейнера */
.floating-actions > a,
.floating-actions > a.help-btn,
.floating-actions > a.support-btn,
.floating-actions > a.viber-fab {
    position: relative !important; /* Сбрасываем fixed, чтобы они встали в Flexbox */
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;

    /* Общие стили внешнего вида */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    color: #0d47a1 !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.15) !important;
    border: 2px solid #4a7fc1 !important;
    transition: all 0.3s ease !important;
    height: 50px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Наведение на любую из кнопок */
.floating-actions > a:hover {
    background: #0d47a1 !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4) !important;
}

/* Иконки внутри кнопок */
.floating-actions > a .glyphicon,
.floating-actions > a svg {
    font-size: 1.3rem !important;
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
    flex-shrink: 0 !important;
}

/* Текст внутри кнопок */
.floating-actions > a span:not(.glyphicon) {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Адаптив для мобильных (оставляем только иконки) */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px !important;
        right: 20px !important;
        gap: 12px !important;
    }
    .floating-actions > a {
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
    }
    .floating-actions > a span:not(.glyphicon) {
        display: none !important; /* Скрываем текст */
    }
}

/* =========================================
   ИСТОРИЯ ЗА РАХУНКОМ (КРУПНЫЕ И АККУРАТНЫЕ)
   ========================================= */

.history-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
}

/* Минимальная ширина таблицы, чтобы колонки не сжимались слишком сильно */
.history-table {
    min-width: 900px !important; /* Если экран меньше 900px, появится скролл */
}

/* Шапка */
.history-table thead th {
    background: linear-gradient(180deg, #4a7fc1 0%, #2a5fa0 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    padding: 16px 10px !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: none !important;
    line-height: 1.3 !important;
}

/* Заголовок группы (Водопостачання, Абонентське) */
.history-table tbody td[colspan] {
    background: #f4f8ff !important;
    color: #0d47a1 !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    text-align: left !important;
    padding: 12px 15px !important;
    border-top: 2px solid #4a7fc1 !important;
}

/* Ячейки тела */
.history-table tbody td {
    padding: 14px 10px !important;
    font-size: 1.1rem !important;
    color: #333 !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    background: transparent !important;
    word-wrap: break-word !important;
}

/* Колонка "Послуги" */
.history-table tbody td.service-title-cell {
    text-align: left !important;
    padding-left: 15px !important;
    font-size: 1.05rem !important;
    color: #444 !important;
    line-height: 1.4 !important;
    min-width: 250px !important; /* Чтобы названия услуг не сжимались */
}

/* Числовые ячейки */
.history-table tbody td.num-cell {
    text-align: right !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    white-space: nowrap !important;
    min-width: 80px !important; /* Минимальная ширина для чисел */
}

/* Цвета */
.history-table tbody td.val-green { color: #2e7d32 !important; }
.history-table tbody td.val-red { color: #d9534f !important; }

/* Колонка с месяцем и кнопкой */
.history-table tbody td[rowspan] {
    background: #f4f8ff !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-right: 2px solid #dce8f5 !important;
    font-size: 1.05rem !important;
    padding: 10px 5px !important;
    min-width: 120px !important; /* Чтобы кнопка "Квитанція" влезала */
    word-wrap: break-word !important;
}

/* Кнопка "Квитанція" */
.history-table tbody td[rowspan] a.btn {
    display: inline-block !important;
    font-size: 0.9rem !important;
    padding: 6px 12px !important;
    margin-top: 8px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    border-radius: 15px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ (ДО 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Горизонтальный скролл для таблицы */
    .table-responsive-custom,
    .panel-body {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Шрифт на мобильных чуть меньше, но все еще читабельный */
    .history-table th, .history-table td {
        font-size: 0.95rem !important;
        padding: 10px 5px !important;
    }

    .history-table tbody td.service-title-cell {
        font-size: 0.95rem !important;
        min-width: 200px !important;
    }

    .history-table tbody td.num-cell {
        font-size: 1rem !important;
        min-width: 70px !important;
    }

    /* Кнопка "Квитанція" на мобильных */
    .history-table tbody td[rowspan] a.btn {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
        margin-top: 5px !important;
    }
}

/* =========================================
   13. БЕЙДЖИ СТАТУСОВ
   ========================================= */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.badge-status .glyphicon { font-size: 1rem; }

.badge-active   { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.badge-blocked  { background-color: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.badge-deleted  { background-color: #f5f5f5; color: #757575; border: 1px solid #e0e0e0; }

/* Красная кнопка удаления */
.btn-danger {
    background-color: #ffebee !important;
    color: #d9534f !important;
    border: 1px solid #ffcdd2 !important;
}
.btn-danger:hover {
    background-color: #d9534f !important;
    color: #fff !important;
}

/* =========================================
   КАРТОЧКИ И СЕТКА (ГЛАВНАЯ)
   ========================================= */

.cabinet-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 35px;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.07);
    border: 1px solid #dce8f5;
    margin-bottom: 30px;
}

.cabinet-section-title {
    font-family: Georgia, serif;
    font-style: italic;
    color: #0d47a1;
    font-size: 1.8rem; /* Увеличили заголовок */
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3edf9;
}

/* Сетка параметров */
.account-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.account-detail-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8fafc; /* Легкий фон для ячеек */
    border-radius: 8px;
    border: 1px solid #eef2f7;
}

.account-detail-label {
    font-size: 1.05rem; /* Увеличили подпись */
    color: #0d47a1; /* Сделали синей */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.account-detail-value {
    font-size: 1.3rem; /* Увеличили значение */
    color: #333;
    line-height: 1.5;
}

/* Статус "Дійсний" */
.status-valid {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid #c8e6c9;
}

/* =========================================
   ТАБЛИЦА УСЛУГ
   ========================================= */

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.services-table thead th {
    background: #e3edf9;
    color: #0d47a1;
    padding: 18px 20px;
    font-size: 1.1rem; /* Крупный шрифт в шапке */
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 2px solid #4a7fc1;
}

.services-table tbody td {
    padding: 18px 20px;
    font-size: 1.25rem; /* Увеличили текст в ячейках */
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.services-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.services-table tbody tr:hover {
    background-color: #f0f6ff;
}

.services-table tbody tr:last-child td {
    border-bottom: none;
}

.services-table .service-name {
    font-weight: 600;
    color: #2a5fa0;
    font-size: 1.25rem;
}

.services-table .service-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.services-table .service-price {
    font-weight: 700;
    color: #0d47a1;
    font-size: 1.3rem; /* Тариф делаем акцентным */
}

/* Адаптив */
@media (max-width: 768px) {
    .account-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .services-table thead th,
    .services-table tbody td {
        padding: 12px;
        font-size: 1.05rem;
    }
    .cabinet-section-title {
        font-size: 1.5rem;
    }
}