/* Main */

body {
    /*font-family: 'Inter', sans-serif; */
    font-size: 13px;
}

.app-sidebar {

    position: sticky;
    top: 0;
    height: 100dvh;                 /* мобильный-friendly vh */
}

.app-sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-sidebar::-webkit-scrollbar {
    display: none;
}


.app-sidebar.bg-body-secondary {
    background-color: var(--bs-body-bg, #1e1e1e) !important;
}


.tooltip .tooltip-inner {
    max-width: none;
    padding: 10px 12px;
}

.trx-tooltip {
    min-width: 320px;
    max-width: 420px;
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
}

/* Сетка: две колонки */
.trx-tooltip__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 6px;
}

/* Заголовки колонок */
.trx-tooltip__head {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    margin-bottom: 6px;
}

.trx-tooltip__title {
    font-weight: 700;
    text-transform: none;
    font-size: 13px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Список банков без маркеров, ровные строки */
.trx-banks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trx-bank {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    white-space: normal;        /* разрешаем перенос */
    word-break: break-word;
}

/* Индикатор слева */
.trx-dot {
    --size: 10px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    flex: 0 0 var(--size);
    box-shadow: 0 0 0 2px rgba(0,0,0,.25) inset;
}
.trx-dot--on  { background: #28a745; } /* зелёный */
.trx-dot--off { background: #dc3545; } /* красный */

/* Мелкая подпись «нет активных…» */
.trx-muted { opacity: .7; font-style: italic; }

/*.tooltip .methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tooltip .method-block {
    font-weight: bold;
    margin-bottom: 5px;
}

.tooltip .bank-item {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.tooltip .bank-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    display: inline-block;
}

.tooltip .bank-icon.online {
    background-color: #28a745;
    border-radius: 50%;
}

.tooltip .bank-icon.offline {
    background-color: #dc3545;
    border-radius: 50%;
}*/


.short-id {
    display: inline-block;
    max-width: 4em;              /* или сколько нужно символов */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.full-id {
    display: inline-block;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.copy-id-btn {
    vertical-align: middle;
}
.copy-id-btn:hover {
    background-color: #f8f9fa!important;
    box-shadow: none!important;
    border: 0!important;
}

.copy-number-td {
    cursor: pointer;
}
.copy-number-td:hover {
    background-color: #f8f9fa;
}

.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none !important;
    box-shadow: none !important;
    /* при желании можно вернуть стандартную границу */
    border-color: #ced4da !important;
}

.form-control, input, textarea, select {
    box-shadow: none!important;
}
.badge {
    font-variant-numeric: tabular-nums;
}

.dropdown-toggle::after {
    display: none !important;
}

/* Снимаем у .modal-dialog все max-width-ы и переводим в режим подгонки */
#imageModal .modal-dialog {
    /* Aby подогнаться «по контенту» */
    width: fit-content;
    /* Но не больше экрана */
    max-width: 100%;
    /* Центрируем его, как у Bootstrap по умолчанию */
    margin: 1.75rem auto;
    /* Убираем pointer-events, если нужно */
    pointer-events: none;
}

/* Содержимое — наоборот, блоковое, чтобы img задавала размер */
#imageModal .modal-content {
    pointer-events: auto;
    display: inline-block;
    background: transparent;
    border: none;
}

/* Центрируем картинку и ограничиваем по высоте */
#imageModal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageModal .modal-body img {
    /* не больше 90% высоты экрана */
    max-height: 90vh;
    /* сохраняем пропорции */
    width: auto !important;
    max-width: 100%;
}

a { text-decoration: none; }

.form-check { min-height: 0!important; }

.login-box, .register-box { width: 400px;}

/* User Profile */
.profile-sidebar {
    background: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
}

.sidebar-menu .nav-link p {
    font-size: 14px;
}

.nav-pills .nav-link {
    color: #6c757d;!important;
    border-radius: 10px;!important;
    padding: 12px 20px;!important;
    margin: 4px 0;!important;
    transition: all 0.3s ease;!important;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;!important;
}

.nav-pills .nav-link.active {
    background-color: #fff;!important;
    color: #4158D0;!important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);!important;
}

.profile-header {
    background: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
    height: 150px;
    border-radius: 15px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border: 4px solid #fff;
    margin-top: -60px;
    background-color: #fff;
}

.settings-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/*.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    margin-left: -3.5em;
}*/

.activity-item {
    border-left: 2px solid #e9ecef;
    padding-left: 20px;
    position: relative;
}

.activity-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4158D0;
    position: absolute;
    left: -7px;
    top: 5px;
}

body {
    font-family: 'Roboto', sans-serif !important;
}

.card {
    border-radius: 4px !important;
    box-shadow:
            0 1px 3px rgba(0,0,0,0.12),
            0 1px 2px rgba(0,0,0,0.24) !important;
}

.btn {
    border-radius: 4px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    transition: box-shadow .2s ease;
}
.btn:focus, .btn:hover {
    box-shadow:
            0 4px 6px rgba(0,0,0,0.12),
            0 2px 4px rgba(0,0,0,0.24) !important;
}

.form-control {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
}
.form-control:focus {
    border-bottom: 2px solid #6200ee !important;
    box-shadow: none !important;
}

.input-group-text {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
    color: #555 !important;
    padding: .375rem .75rem !important;
    line-height: 1.5 !important;
}


.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-bottom-color: #6200ee !important;
    color: #6200ee !important;
}

.input-group .form-control {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
}

.input-group-prepend .input-group-text {
    border-right: none !important;
}
.input-group-append .input-group-text {
    border-left: none !important;
}

.card {
    border: none !important;
    border-radius: 4px !important;
    box-shadow:
            0 1px 3px rgba(0,0,0,0.12),
            0 1px 2px rgba(0,0,0,0.24) !important;
    transition: box-shadow .2s ease, transform .1s ease;
    overflow: hidden;
}


.card-header {
    /*border-bottom: none !important;*/
    background-color: #fff !important;
    font-weight: 400;
    font-size: 15px;
    color: #555;
    padding: 1.25rem 1rem !important;
}

.card-body,
.card-footer {
    background-color: #fff !important;
    border-top: none !important;
}

.card-group {
    display: flex;
}

.card-group .card + .card {
    margin-left: 1rem;
}

.card-group .card {
    border-radius: 4px !important;
    box-shadow:
            0 1px 3px rgba(0,0,0,0.12),
            0 1px 2px rgba(0,0,0,0.24) !important;
    flex: 1 1 0;
    background-clip: padding-box;
}

.card-group .card:first-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.card-group .card:last-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* 1. Каркас модалки */
.modal-content {
    border: none !important;
    border-radius: 4px !important;
    box-shadow:
            0 2px 4px rgba(0,0,0,0.14),
            0 1px 3px rgba(0,0,0,0.12),
            0 1px 2px rgba(0,0,0,0.20) !important;
    overflow: hidden;
}

/* 2. Заголовок */
.modal-header {
    background-color: #fff !important;
    border-bottom: none !important;
    padding: 1rem 1.5rem !important;
}
.modal-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    /*font-size: 1.25rem;
    color: #6200ee;*/ /* основной материал-цвет */
}

/* 3. Кнопка “закрыть” */
.modal-header .btn-close {
    font-size: 0.8rem;
    opacity: .6;
    transition: opacity .2s ease;
}
.modal-header .btn-close:hover {
    opacity: 1;
}

/* 4. Тело модалки */
.modal-body {
    /*padding: 1rem 1.5rem !important;*/
    font-family: 'Roboto', sans-serif;
    /*font-size: 1rem;
    color: #424242;*/
}

/* 5. Футер модалки */
.modal-footer {
    background-color: #fff !important;
    border-top: none !important;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: .75rem 1.5rem !important;
}

/* 6. Кнопки в футере под Material */
.modal-footer .btn {
    border-radius: 4px !important;
    font-weight: 500;
    text-transform: none;
    box-shadow: none;
    transition: box-shadow .2s ease, background-color .2s ease;
}
.modal-footer .btn:hover {
    box-shadow:
            0 3px 5px rgba(0,0,0,0.14),
            0 1px 1px rgba(0,0,0,0.12),
            0 1px 3px rgba(0,0,0,0.20);
}

.modal-footer .btn {
    position: relative;
    overflow: hidden;
}
.modal-footer .btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(0, 0, 0, 0.1);
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@media (max-width: 767.98px) {
    /* 1) Переводим группу в обычный блочный контейнер */
    .card-group {
        display: block !important;
    }

    /* 2) Убираем flex-поведение у карточек */
    .card-group .card {
        display: block;
        flex: none !important;        /* отменяем flex:1 1 0 */
        width: 100%;                  /* занимают всю ширину родителя */
        margin-bottom: 1rem;          /* отступ между ними */
    }

    /* 3) Последнюю карточку отступ снизу не нужен */
    .card-group .card:last-child {
        margin-bottom: 0;
    }
}

/* На md+ возвращаем стандартное поведение flex-группы */
@media (min-width: 768px) {
    .card-group {
        display: flex !important;
    }
    .card-group .card {
        flex: 1 1 0% !important;      /* восстанавливаем родные flex-настройки */
        margin-bottom: 0;
        /* и, если у вас есть левые отступы между карточками, можно вернуть их здесь */
        margin-left: .5rem;
    }
    .card-group .card:first-child {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .card-group {
        display: block !important;
    }
    .card-group .card {
        display: block;
        flex: none !important;
        width: 100%;
        margin: 0 0 1rem;        /* только нижний отступ */
    }
    /* вот тут сбрасываем «margin-left» */
    .card-group .card + .card {
        margin-left: 0 !important;
    }
}

/* ===========================
   Пагинация в стиле "карточная"
   =========================== */

/* 1. Контейнер пагинации: flex и удаляем стандартные отступы */
.pagination-card {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Разрыв между кнопками */
.pagination-card .page-item + .page-item {
    margin-left: 0.5rem;
}

/* 2. Общие стили для ссылок (page-link) */
.pagination-card .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    font-size: 0.875rem; /* чуть меньше, чтобы не "выдавалось" из хедера */
    line-height: 1;

    color: #6200ee; /* ваш основной акцентный фиолетовый */
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px; /* совпадает с вашими .btn и .card */
    text-decoration: none;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

/* 3. Hover-эффект (копирует логику ваших .btn:hover) */
.pagination-card .page-item:not(.disabled) .page-link:hover {
    background-color: rgba(98, 0, 238, 0.08); /* почти прозрачный фиолетовый */
    border-color: rgba(98, 0, 238, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #6200ee;
}

/* 4. Активный элемент */
.pagination-card .page-item.active .page-link {
    background-color: #6200ee;
    color: #ffffff;
    border-color: #6200ee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: default;
}

/* 5. Отключённый элемент */
.pagination-card .page-item.disabled .page-link {
    color: rgba(0, 0, 0, 0.3);
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

/* 6. Если нужны стрелки чуть уже, чем цифры — можно добавить более узкий паддинг для них */
.pagination-card .page-item:first-child .page-link,
.pagination-card .page-item:last-child .page-link {
    width: 30px;
    height: 30px;
}

/* Дополнительно: если хотите, чтобы при клике был лёгкий "ripple" */
.pagination-card .page-link {
    position: relative;
    overflow: hidden;
}
.pagination-card .page-link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}
.pagination-card .page-link:active::after {
    width: 150%;
    height: 150%;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0.4s ease-out;
}

.card-header::after {
    content: none !important;
}




