/* Copy icon (универсальная иконка копирования) */
.tx-hash-copy {
    cursor: pointer;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
}
.icon-copy {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("/img/page_copy.png") no-repeat center;
    background-color: transparent;
}
.tx-hash-copy.copied {
    color: #5cb85c;
    font-size: 11px;
}

/* Типографика админки: стек как в BS3 / классический UI */
:root {
    --bs-font-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Все размеры в rem от корня — 90% даёт уменьшение типографики ~на 10% */
html {
    font-size: 92%;
    height: 100%;
}

body {
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Ссылки: без подчёркивания, плавная смена цвета (и декора underline у BS5) */
body a {
    text-decoration: none;
    transition:
        color 0.2s ease-in-out,
        text-decoration-color 0.2s ease-in-out,
        opacity 0.2s ease-in-out;
}

body a:hover,
body a:focus,
body a:focus-visible {
    text-decoration: none;
}

/* Кнопки-ссылки и пагинация: плавность фона/бордюра */
body a.btn,
body a.page-link,
body a.dropdown-item,
body a.nav-link {
    transition:
        color 0.2s ease-in-out,
        background-color 0.2s ease-in-out,
        border-color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out,
        opacity 0.2s ease-in-out;
}

h5,
.h5 {
    font-size: 1rem;
}

/* Крошки (BS5 + оформление как в BS3) */
.breadcrumb {
    padding: 8px 15px;
    margin-bottom: 20px;
    list-style: none;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Текущая страница в крошках: BS reboot задаёт a { text-decoration: underline } */
.breadcrumb .breadcrumb-item.active,
.breadcrumb .breadcrumb-item.active a,
.breadcrumb .breadcrumb-item.active a:hover,
.breadcrumb .breadcrumb-item.active a:focus,
.breadcrumb .breadcrumb-item.active a:focus-visible,
/* последний пункт — это страница из адресной строки, даже если задана как ссылка без .active */
.breadcrumb .breadcrumb-item:last-child a,
.breadcrumb .breadcrumb-item:last-child a:hover,
.breadcrumb .breadcrumb-item:last-child a:focus,
.breadcrumb .breadcrumb-item:last-child a:focus-visible {
    text-decoration: none !important;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -41px;
    padding: 0 0 40px;
}

/* Верхний отступ задаётся в layout (JS): высота навбара + 20px */
.wrap > .container {
    padding: 0 15px 20px;
}

.footer {
    height: 40px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-weight: normal !important;
    line-height: 1;
    padding-left: 5px;
    -webkit-font-smoothing: antialiased;
}

a.asc:after {
    content: "\f148";
}

a.desc:after {
    content: "\f128";
}

.sort-numerical a.asc:after {
    content: "\f148";
}

.sort-numerical a.desc:after {
    content: "\f128";
}

.sort-ordinal a.asc:after {
    content: "\f148";
}

.sort-ordinal a.desc:after {
    content: "\f128";
}

.grid-view td {
    white-space: nowrap;
}

/* Статические страницы: список — грид на всю ширину колонки без лишних боковых отступов */
.pages-index #pages-grid,
.pages-index #pages-grid-container {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Верхняя горизонтальная прокрутка для широких гридов (плагин topGridScroll) */
.top-hscroll {
    overflow-x: scroll;
    overflow-y: hidden;
    min-height: 18px;
    height: 18px;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #9aa0a6 transparent;
    background: transparent;
}

.top-hscroll::-webkit-scrollbar {
    height: 12px;
}

.top-hscroll::-webkit-scrollbar-track {
    background: transparent;
}

.top-hscroll::-webkit-scrollbar-thumb {
    background: #9aa0a6;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.top-hscroll::-webkit-scrollbar-thumb:hover {
    background: #7f868c;
    background-clip: padding-box;
}

.top-hscroll-inner {
    height: 1px;
    pointer-events: none;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* Единый стиль ошибок валидации (Yii2 + Bootstrap 5) */
.help-block,
.help-block-error,
.invalid-feedback,
.form-text.text-danger,
.has-error .help-block,
.has-error .control-label,
.field-has-error .form-label {
    color: #dc3545 !important;
}

.help-block,
.help-block-error,
.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
}

.navbar {
    min-height: 40px;
}

.navbar-collapse {
    min-height: 40px;
}

.navbar-brand {
    padding: 0 15px;
    height: 40px;
    line-height: 40px;
}

/* Bootstrap 5 navbar: пункты и выход */
.navbar-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Чёрный фон у активного пункта только в развёрнутом навбаре (как у navbar-expand-lg).
   В «гамбургере» (<992px) оставляем стандартный вид без заливки. */
@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link.active {
        background-color: #000;
        color: #fff;
    }
    .navbar-dark .navbar-nav .nav-link.active:hover,
    .navbar-dark .navbar-nav .nav-link.active:focus,
    .navbar-dark .navbar-nav .nav-link.active:focus-visible {
        background-color: #000;
        color: #fff;
    }
}

.navbar-nav .nav-item > form > button.logout {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

@media (max-width: 991px) {
    .navbar-nav .nav-item > form > button.logout {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

.navbar-nav .nav-item > form > button.logout:focus,
.navbar-nav .nav-item > form > button.logout:hover {
    text-decoration: none;
}

.navbar-nav .nav-item > form > button.logout:focus {
    outline: none;
}

/*
 * Вложенные dropdown в меню (только ≥lg): иначе на мобильных absolute-меню уезжают за экран,
 * а прокрутка navbar-collapse не помогает.
 */
@media (min-width: 992px) {
    #backend-navbar .navbar-collapse,
    #backend-navbar .navbar-nav {
        overflow: visible;
    }

    #backend-navbar .dropdown-menu {
        overflow: visible;
    }
}

/* Мобильное меню: прокручиваемая колонка + выпадашки в потоке (не за пределами окна) */
@media (max-width: 991.98px) {
    #backend-navbar .navbar-collapse {
        max-height: calc(100vh - 3.5rem);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Светлая панель: контраст с тёмным навбаром и читаемый текст подпунктов */
    #backend-navbar .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        border-radius: 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        background-color: #e9ecef;
        color: #212529;
        box-shadow: none;
    }

    #backend-navbar .navbar-nav .dropdown-item {
        color: #212529;
        white-space: normal;
    }

    #backend-navbar .navbar-nav .dropdown-item:hover,
    #backend-navbar .navbar-nav .dropdown-item:focus {
        color: #000;
        background-color: #dee2e6;
    }

    #backend-navbar .navbar-nav .dropdown-item.active,
    #backend-navbar .navbar-nav .dropdown-item:active {
        color: #fff;
        background-color: #212529;
    }

    #backend-navbar .navbar-nav .dropdown-divider {
        border-color: rgba(0, 0, 0, 0.12);
    }

    #backend-navbar .navbar-nav .dropdown-header {
        color: #495057;
    }

    /* Вложенные подменю (если останутся) — тоже в потоке */
    #backend-navbar .navbar-nav .dropdown-menu > .dropdown > .dropdown-menu,
    #backend-navbar .navbar-nav .dropdown-menu .dropdown-menu > .dropdown > .dropdown-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin: 0;
        width: 100%;
        border: 0;
        background-color: #dee2e6;
        color: #212529;
    }
}

.dropdown-menu > .dropdown {
    position: relative;
}

.dropdown-menu > .dropdown > .dropdown-menu,
.dropdown-menu .dropdown-menu > .dropdown > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: 0;
    min-width: 11rem;
    z-index: 1060;
}

.dropdown-menu > .dropdown > a.dropdown-toggle::after,
.dropdown-menu .dropdown-menu > .dropdown > a.dropdown-toggle::after {
    transform: rotate(-90deg);
    float: inline-end;
    margin-top: 0.35em;
}

/* Блок «Панель переводов» в меню Контент (collapse вместо вложенного dropdown) */
.dropdown-translate-block .collapse {
    overflow: visible;
}
.dropdown-translate-block button.dropdown-item {
    cursor: pointer;
}

/* Рекламные ссылки: отступ между кнопками «Изменить» и «Удалить» в гриде */
.ads-index .ads-index-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* Текущая страница в подменю переводов (десктоп: выпадающее меню на тёмном навбаре) */
@media (min-width: 992px) {
    #backend-navbar .dropdown-translate-block a.dropdown-item.active {
        background-color: rgba(13, 110, 253, 0.12);
        color: #0a58ca;
        font-weight: 600;
    }
    #backend-navbar .dropdown-translate-block a.dropdown-item.active:hover,
    #backend-navbar .dropdown-translate-block a.dropdown-item.active:focus {
        background-color: rgba(13, 110, 253, 0.2);
        color: #052c65;
    }
}

#tab-user-container .form-group{
    margin-bottom: 0.75rem !important;
}

#tab-user-container .card{
    margin-bottom: 1rem !important;
}

.password-cell {
    position: relative;
}

.password-cell .lock-pass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    cursor: pointer;
    border-radius: 4px;
    text-indent: 0;
    overflow: visible;
}

.password-cell .lock-pass::before {
    content: none;
}

.password-cell .lock-pass .bi {
    font-size: 14px;
    line-height: 1;
}

.password-cell .lock-pass:hover,
.password-cell .lock-pass:focus {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.06);
}

.password-cell .input-group > .form-control {
    border-right: 0;
}

/* BootstrapDialog (legacy): в BS5 btn-* на modal-header не красит фон шапки */
.modal-header.bootstrap-dialog-header.btn-warning {
    background-color: var(--bs-warning);
    color: #212529;
}
.modal-header.bootstrap-dialog-header.btn-danger {
    background-color: var(--bs-danger);
    color: #fff;
}
.modal-header.bootstrap-dialog-header.btn-success {
    background-color: var(--bs-success);
    color: #fff;
}
.modal-header.bootstrap-dialog-header.btn-info {
    background-color: var(--bs-info);
    color: #212529;
}
.modal-header.bootstrap-dialog-header.btn-primary {
    background-color: var(--bs-primary);
    color: #fff;
}
.modal-header.bootstrap-dialog-header {
    font-size: 1.05rem;
}
.modal-header.bootstrap-dialog-header .modal-title,
.modal-header.bootstrap-dialog-header .bootstrap-dialog-title {
    font-size: 1.1rem;
}
.modal-header.bootstrap-dialog-header .btn-close {
    filter: none;
    opacity: 0.8;
}

.bootstrap-dialog .bootstrap-dialog-message {
    font-size: 0.95rem;
    line-height: 1.45;
}



.form-write-support .theme{
    font-weight: bold;
    font-size: 16px;
}
.form-write-support .theme span{
    color:#acacac;
}
.form-write-support .id{
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    color:black;
    margin-right: 20px;
}
.form-write-support .id span{
    color:#acacac;
}
.form-write-support .date-created{
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    color:black;
    margin-right: 20px;
}
.form-write-support .date-created span{
    color:#acacac;
}
.form-write-support .status{
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    color:black;
    margin-right: 20px;
}

/* Тикет: ответ + закрыть — одинаковый размер кнопок */
.ticket-reply-actions > .btn {
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    line-height: 1.5;
    font-size: 1rem;
}
.ticket-reply-actions .btn-answer {
    background: #ffa94a;
    border: none;
    color: #fff;
}
.ticket-reply-actions .btn-answer:hover {
    filter: brightness(0.95);
    color: #fff;
}
.message-support textarea{
    width: 100%;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid #d5d5d5;
    font-style: italic;
    margin-bottom: 0px;
}
/* Переписка в тикете (backend/views/tickets/_form.php) */
.chat-support .ticket-msg {
    margin: 0;
}
.chat-support .ticket-msg--support {
    background: #f7f7f7;
}
.chat-support .ticket-msg__avatar-img {
    max-width: 56px;
    height: auto;
    display: inline-block;
}
.chat-support .ticket-msg__delete {
    font-size: 1.1rem;
    line-height: 1;
}
.form-tickets form{
    overflow: hidden;
}
.form-tickets input[type="text"]{
    width: 100%;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid #d5d5d5;
    font-style: italic;
}
.form-tickets input[type="submit"]{
    background: #ffa94a;
    border: none;
    border-radius: 5px;
    padding: 10px 30px;
    color:white;
    float: right;
    margin-bottom: 30px;
}
.form-tickets textarea{
    width: 100%;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid #d5d5d5;
    font-style: italic;
}
.table-tickets{
    margin-top: 30px;
}
.table-tickets .heading-table{
    padding: 10px;
    text-transform: uppercase;
    font-size: 12px;
    color:#bbbab9;
}
.table-tickets .t-col{
    padding: 10px;
    font-size: 15px;
    font-weight: 400;

}
.table-tickets .t-col .status-green{
    color:#0cb23f;
}
.table-tickets .t-col .status-red{
    color: #b20600;
}
.table-tickets .t-col .status-blue{
    color: #23527c;
}

.status-green{
    color:#0cb23f;
}
.status-red{
    color: #b20600;
}
.status-blue{
    color: #23527c;
}


/*modal*/


.modal-custom{

}

.modal-custom .modal-content {
    background: #f4f4f3;
}

.modal-custom .close{
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 99999;
}

.modal-custom .modal-body{
    padding: 70px 60px;
    text-align: center;
}

.modal-custom .btn-modal{
    background: #feb05b;
    color: white;
    font-size: 17.5px;
    padding: 2px 12px;
    width: 130px;
}
.modal-custom .modal-text {
    color: #4e4d4d;
    font-size: 24px;
    margin-bottom: 60px;
}

.modal-custom .close{
    border: 1px solid;
    border-radius: 50px;
    padding: 1px 5px;
    text-align: center;
    color: #a2a2a1;
}

.btn.btn-modal+.btn.btn-modal {
    margin-left: 70px;
}

.modal-custom span{
    font-weight: bold;
    padding-bottom: 5px;
    font-size: 16px;
    color: #4e4d4d;
    display: block;
    margin-bottom: 0px;
    margin-top: 17px;
    margin-left: 12px;
}
.modal-custom input {
    border: 1px solid #d5d5d5;
    border-radius: 7px;
    padding: 5px 8px;
    background: #f4f4f3;
}

.modal-custom ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #cecdcd;
    font-size: 15px;
    /*padding:10px;*/
}
.modal-custom ::-moz-placeholder { /* Firefox 19+ */
    color: #cecdcd;
    font-size: 15px;
    padding:10px;
}
.modal-custom :-ms-input-placeholder { /* IE 10+ */
    color: #cecdcd;
    font-size: 15px;
    padding:10px;
}
.modal-custom :-moz-placeholder { /* Firefox 18- */
    color: #cecdcd;
    font-size: 15px;
    padding:10px;
}

/* История подписки: отдельное оформление, не трогаем padding остальных .modal-custom */
.modal-history-subscription.modal-custom .modal-body {
    padding: 0.5rem 1.25rem 1rem;
    text-align: left;
}
.modal-history-subscription .modal-history-subscription__shell {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}
.modal-history-subscription .modal-header {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.25rem 0.75rem;
}
.modal-history-subscription .modal-footer {
    background: #fafafa;
    padding: 0.75rem 1.25rem 1rem;
}
.modal-history-subscription__list {
    max-height: min(58vh, 520px);
    overflow-y: auto;
    padding-right: 2px;
}
.modal-history-subscription__item {
    border-left: 3px solid #0d6efd;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    margin-bottom: 0.6rem;
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.modal-history-subscription__item:last-child {
    margin-bottom: 0;
}
.modal-history-subscription__item--deleted {
    opacity: 0.55;
    border-left-color: #adb5bd;
}
.modal-history-subscription__time {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
}
.modal-history-subscription__text {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-top: 0.35rem;
    word-break: break-word;
}
.modal-history-subscription__empty {
    border: 1px dashed #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
}
a.modal-history-subscription-trigger:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
}

.loaderArea {
    display: none;
    background-color: rgba(0, 0, 0, 0.3);
    background-size:100% 100%;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    right:0;
    bottom:0;
    z-index: 100000;
}
.loader {
    display:inline-block;
    position: absolute;
    left: 50%;
    margin-left: -20px;
    top: 51%;
    margin-top: -20px;
}

/* ===== Хелпер брейкпоинтов Bootstrap 5 (отладка, см. BootstrapBreakpointHelperWidget) ===== */
.bp-helper {
    position: fixed;
    bottom: 8px;
    left: 8px;
    z-index: 99999;
    font-size: 12px;
    font-family: monospace;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #0f0;
    border-radius: 4px;
    pointer-events: none;
}

.bp-helper span {
    display: none;
}

#transfers-sum-box {
    box-shadow: inset -1px 0 0 grey;
    padding-right: 30px;
}

#font-oblique {
    padding-left: 30px; 
    font-style: oblique;
}

#font-oblique2{
    font-weight: bold;
}

/* #font-oblique2 span {
    float: right;
} */

#profit-box {
    font-weight: bold;
    text-align: center;
    font-style: oblique;
    margin-bottom: 24px;
}

#transfers-sum-box-container {
    margin-bottom: 24px;
}

@media (max-width: 575.98px) {
    .bp-helper .bp-xs {
        display: inline !important;
    }


    #font-oblique2{
        margin-bottom: 15px !important;
    }

    /* #font-oblique2 span {
        float: none !important;
    } */

    #transfers-sum-box{
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .bp-helper .bp-sm {
        display: inline !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .bp-helper .bp-md {
        display: inline !important;
    }

}

@media (max-width: 768px) {
    #tab-user-container .ms-auto {
        margin-left: 0 !important;
    }

    #transfers-sum-box {
        box-shadow: none !important;
        padding-right: 0 !important;
    }

    #font-oblique {
        padding-right: calc(var(--bs-gutter-x) * 0.5);
        padding-left: calc(var(--bs-gutter-x) * 0.5);
    }

    
}

@media (max-width: 1200px){
    
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .bp-helper .bp-lg {
        display: inline !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .bp-helper .bp-xl {
        display: inline !important;
    }
}

@media (min-width: 1400px) {
    .bp-helper .bp-xxl {
        display: inline !important;
    }
}

/* BS3 «well» / offsets в формах серверов — в BS5 нет, оставляем внешний вид */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
}

@media (min-width: 576px) {
    .col-sm-offset-1 {
        margin-left: 8.33333333%;
    }
    .col-md-offset-0,
    .col-lg-offset-0 {
        margin-left: 0;
    }
}