.md-form {
    position: relative;
    margin-bottom: 2rem;
   
}

#affiliates_tree ul.jstree-container-ul,
#affiliates_tree ul.jstree-container-ul * {
  font-size: 12px !important;
}

@media (max-width: 991px) {
    .gap-wrapper {
        gap: 20px;
    }
}
.mt-0{
    margin-top: 0 !important;
}

table.table td, table.table th{
    padding: 5px !important;
}

.pec-0{
    padding-right: 0 !important;
}

.cbc{
    padding: 0 !important; 
}


.top{
position: relative;
top: 10px;
}
.card {
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1 1 auto; /* тянется по высоте */
  min-height: 240px;
}

.custom-la{
transform: translate() !important;
top: 0 !important;
}


.md-form input.datepicker ~ label,
.md-form input.timepicker ~ label {
    position: absolute;
    top: -1.5rem;
    left: 0;
    display: block;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
    background: none;
    padding: 0;
    transform: none;
    transition: none;
    pointer-events: auto;
    z-index: auto;
}

#TopAffiliates{
    display: block;
    height: 189px;
    width: 378px;
}






.md-form .form-control[readonly]{
    font-size: .9rem!important;
}

.md-form input[type=date], .md-form input[type=datetime-local], .md-form input[type=email], .md-form input[type=number], .md-form input[type=password], .md-form input[type=search-md], .md-form input[type=search], .md-form input[type=tel], .md-form input[type=text], .md-form input[type=time], .md-form input[type=url], .md-form textarea.md-textarea{
        font-size: .9rem!important;

}

.md-form input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: white;
    padding: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
}


.md-form input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
    outline: none;
}

.md-form input.datepicker:focus ~ label,
.md-form input.timepicker:focus ~ label,
.md-form input.datepicker:not(:placeholder-shown) ~ label,
.md-form input.timepicker:not(:placeholder-shown) ~ label,
.md-form input.datepicker:valid ~ label,
.md-form input.timepicker:valid ~ label,
.md-form input.datepicker[value]:not([value=""]) ~ label,
.md-form input.timepicker[value]:not([value=""]) ~ label {
    transform: none;
    color: #495057;
    background: none;
}

.cus_label{
    top: .5rem !important;
    transition: 0.3s ease !important;
}

.md-form input.datepicker ~ label[for],
.md-form input.timepicker ~ label[for] {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
}

input[type="date"] {
    margin-top: 0;
}

.custom-date .md-form {
    margin-bottom: 1rem;
}

.md-form input::placeholder {
    color: #6c757d;
}

.md-form input:focus::placeholder {
    color: #6c757d;
}

table.table td,
table.table th {
  white-space: normal; 
  word-wrap: break-word; 
  word-break: break-word; 
}


.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 575.98px) {
    label[for] {
        font-size: 0.675rem;
    }
}

@media (max-width: 575.98px) {
    label[for] {
        font-size: 0.675rem;
    }

    .label-custom{
        font-size: 0.710rem;
}
}


.label-custom{
    margin-top: 10px;
}

.row, [class*="col-"] {
  min-width: 0; /* чтобы flex не ломал overflow */
  overflow: visible; /* чтобы не обрезало скролл */
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Для мобильных устройств */
@media (max-width: 991px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    #history {
        min-width: 600px; /* или больше, зависит от контента */
    }
}

@media (max-width: 529px) {
  .mob_custom {
    padding-left: 30px !important;
  }
}

.mobile_custom{
    justify-content: fle;
}



body,.white-skin .side-nav {
    background-color: slategray
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

::-webkit-scrollbar-button {
    width: 15px;
    height: 15px
}

::-webkit-scrollbar-thumb {
    background: #909090;
    border: 0 none #ffffff;
    border-radius: 50px
}

::-webkit-scrollbar-thumb:hover {
    background: #909090
}

::-webkit-scrollbar-thumb:active {
    background: #757575
}

::-webkit-scrollbar-track {
    background: #cfcfcf;
    border: 0 none #ffffff;
    border-radius: 50px
}

::-webkit-scrollbar-track:hover {
    background: #b0b0b0
}

::-webkit-scrollbar-track:active {
    background: #b0b0b0
}

::-webkit-scrollbar-corner {
    background: transparent
}

.cursor-pointer {
    cursor: pointer
}

.support-nav.user-custom-dropdown .dropdown-menu {
    max-height: 75vh;
    overflow-y: scroll
}

#section_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255,255,255,.25);
    z-index: 1039;
    will-change: opacity;
    display: none
}

#section_overlay>.preloader-wrapper {
    top: 50vh
}

#ChangePasswdForce {
    display: none
}

#ModalLoginHistory .fa-mobile-alt {
    font-size: 1rem
}

#ModalNotificationsContent {
    font-size: .9rem!important
}

.side-nav .collapsible .fab,.side-nav .collapsible .far,.side-nav .collapsible .fas {
    text-align: center;
    min-width: 16px
}

.side-nav.slim #sidemenu_global_ul>li>a>.fa-angle-right {
    display: none
}

.sidemenu_global_ul .collapsible-body {
    display: block
}

.font-size-custom,.font-size-custom input,.font-size-custom label {
    font-size: .8rem!important
}

.font-size-custom2,.font-size-custom2 input,.font-size-custom2 label {
    font-size: .9rem!important
}

#RequestLanguage .select-dropdown li img {
    height: 16px;
    width: 16px
}

.multi-auth-option {
    position: relative
}

.multi-auth-option-external {
    position: absolute;
    right: 2px;
    top: 6px;
    cursor: alias
}

.multi-auth-option-external:hover i {
    color: #4285f4!important
}

.multi-auth-option-external i {
    font-size: 16px
}

.collapsible-header-custom.active {
    color: #424242!important
}

.side-nav .fa-angle-right {
    position: absolute;
    right: 0;
    top: .8rem;
    margin-right: 1.25rem!important
}

.fixed-sn main,.hidden-sn main {
    padding-top: 3.5rem!important
}

.collapsible-level-2 {
    background-color: transparent!important
}

.logo-sn span {
    color: #000
}

main.wide {
    padding-left: 0!important;
    transition: all .35s ease
}

main.thin {
    padding-left: 0!important;
    transition: all .32s ease
}

#main-logo {
    max-height: 40px;
    max-width: 150px;
    overflow: hidden;
    display: none !important;
}

.green-gradient {
    background: -o-linear-gradient(50deg,#3dbc43,#388e3c);
    background-image: linear-gradient(40deg,rgb(61,188,67),rgb(56,142,60))
}

.list-unstyled.chat .gallery {
    float: left
}

.list-unstyled.chat .gallery .custom-width-1,.list-unstyled.chat .gallery .custom-width-2,.list-unstyled.chat .gallery .custom-width-3 {
    max-width: 100px;
    max-height: 50px
}

.list-unstyled.chat .gallery .custom-width-4 {
    max-width: 80px;
    max-height: 50px
}

.list-unstyled.chat .gallery .custom-width-5 {
    max-width: 47px;
    max-height: 47px
}

.list-unstyled.chat small {
    bottom: 6px;
    right: 10px;
    position: absolute
}

.list-unstyled.chat .gallery hr {
    margin-bottom: .4rem
}

.file-field .btn-floating .fas {
    font-size: 1.2rem
}

#ModalNewTicketError,#ModalReplyTicketError {
    display: none;
    color: red
}

#ModalNewTicketAttachCount,#ModalReplyTicketAttachDiv,#ModalReplyTicketAttachCount {
    display: none
}

.white-skin .navbar .navbar-nav .nav-item a.support-item-read,.white-skin .navbar.double-nav a.support-item-read {
    color: #aaa!important
}

div.dataTables_wrapper div.dataTables_paginate {
    padding-top: .2rem;
    padding-bottom: 0
}

#SuccessAlert {
    display: none;
    position: fixed;
    z-index: 1050;
    max-width: 96%;
    min-height: 50px;
    left: 0;
    right: 0;
    margin: 1px 2% 0px 2%;
    border-radius: .40rem!important
}

#affiliates_tree .switch {
    /* position:absolute; */
    /* right:0; */
}

.modal-ticket-alert,.modal-ticket-alert-holidays {
    display: none
}

#ModalReplyTicketMessage,#ModalNewTicketMessage,#ModalNewTicketSubject {
    border-bottom: none
}

#ModalNewTicketSubject {
    padding: 1.2rem .55rem .2rem!important
}

#ModalReplyTicketReply {
    display: none
}

#ModalReplyTicketReply.invalid,#ModalNewTicketReply.invalid,#ModalNewTicketSubject.invalid {
    border: 1px solid red!important
}

#ModalReplyTicket .modal-footer,#ModalNewTicket .modal-footer {
    border-top: none!important
}

.picker__weekday-display {
    display: none!important
}

.picker__box .picker__header .picker__date-display {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-bottom: .3125rem;
    font-weight: 400
}

.picker__box .picker__header .picker__date-display .picker__weekday-display,.picker__box .picker__header .picker__date-display .picker__month-display,.picker__box .picker__header .picker__date-display .picker__day-display,.picker__box .picker__header .picker__date-display .picker__year-display {
    padding: .875rem .3125rem .25rem;
    font-size: 1.4rem;
    color: rgba(255,255,255,.9)
}

.picker__date-display .clockpicker-display {
    height: 2.5125rem;
    font-size: 2rem;
    padding: .555rem .625rem 0
}

.clockpicker-am-pm-block {
    display: none
}

.chat-body {
    border-radius: .4rem!important;
    overflow-wrap: break-word
}

.chat-own-message {
    background-color: #dcf8c6!important
}

.modal-dialog-custom {
    max-width: none;
    margin: 2.5rem 1rem!important
}

.modal-dialog.cascading-modal .modal-body.modal-body-custom {
    padding-left: 1rem!important;
    padding-right: 1rem!important
}



.modal-dialog-scrollable .modal-content {
    overflow: inherit!important
}

.modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem)
}

.chat-message .md-form .prefix~label {
    margin-left: 4.5rem
}

.chat-message .md-form .prefix~input,.chat-message .md-form .prefix~textarea {
    margin-left: 3.5rem
}

.list-unstyled.chat {
    font-size: 14.2px!important;
    font-weight: 400!important;
    font-family: Segoe UI!important;
    display: none
}

.list-unstyled.chat .w-100 {
    margin-top: .5rem!important;
    margin-bottom: .5rem!important
}

.chat-body .header strong {
    color: coral;
    font-weight: 500
}

#ModalReplyTicket .modal-content,#ModalNewTicket .modal-content {
    background-color: #dedede
}

.active-pink-textarea.md-form label.active {
    color: #f48fb1
}

.pink-textarea textarea.md-textarea:focus:not([readonly]) {
    border-bottom: 1px solid #f48fb1;
    box-shadow: 0 1px 0 0 #f48fb1
}

.pink-textarea.md-form .prefix.active {
    color: #f48fb1
}

.active-amber-textarea.md-form label.active {
    color: #000!important
}

.amber-textarea textarea.md-textarea:focus:not([readonly]),#ModalNewTicketSubject:focus:not([readonly]) {
    border-bottom: 0 solid #000!important;
    box-shadow: 0 0 0 0 #000!important
}

.amber-textarea.md-form .prefix.active,#ModalNewTicketSubject.active {
    color: #000!important
}

#ModalNewTicket .md-form label.active,#ModalReplyTicket .md-form label.active {
    transform: translateY(-60%)!important
}

.active-pink-textarea-2 textarea.md-textarea {
    border-bottom: 1px solid #f48fb1;
    box-shadow: 0 1px 0 0 #f48fb1
}

.active-pink-textarea-2.md-form label.active {
    color: #f48fb1
}

.active-pink-textarea-2.md-form label {
    color: #f48fb1
}

.active-pink-textarea-2.md-form .prefix {
    color: #f48fb1
}

.active-amber-textarea-2 textarea.md-textarea {
    border-bottom: 1px solid #ffa000;
    box-shadow: 0 1px 0 0 #ffa000
}

.active-amber-textarea-2.md-form label.active {
    color: #ffa000
}

.active-amber-textarea-2.md-form label {
    color: #ffa000
}

.active-amber-textarea-2.md-form .prefix {
    color: #ffa000
}

.navbar .notifications-nav .dropdown-menu {
    width: 19rem
}

.navbar .support-nav .dropdown-menu {
    width: 17rem!important
}

#navbarSupportMenuLink:after {
    vertical-align: .70rem!important
}

.support-icon {
    height: 23px;
    display: block;
    font-size: .9rem;
    line-height: normal;
    padding-left: 20px;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 23 21"><metadata><?xpacket begin=" " id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824,2016/09/14-01:09:01 "><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns%23"><rdf:Description rdf:about=""/></rdf:RDF></x:xmpmeta><?xpacket end="w"?></metadata><defs><style>.cls-1{fill:black;fill-rule:evenodd}</style></defs><path id="_1" data-name="1" class="cls-1" d="M33,120.755v2.872a2.087,2.087,0,0,1-2.126,2.04H30.258a5.07,5.07,0,0,1-5.107,4.4H23.622a1.518,1.518,0,0,1-1.413.93H20.792a1.457,1.457,0,1,1,0-2.911h1.417a1.517,1.517,0,0,1,1.413.931h1.529a3.967,3.967,0,0,0,4.042-3.878V118.43a7.55,7.55,0,0,0-7.693-7.38,7.55,7.55,0,0,0-7.693,7.38v6.712a0.536,.536,0,0,1-.547.525H12.126A2.087,2.087,0,0,1,10,123.627v-2.872a2.087,2.087,0,0,1,2.126-2.04h0.587V118.43A8.624,8.624,0,0,1,21.5,110a8.624,8.624,0,0,1,8.787,8.43v0.285h0.587A2.087,2.087,0,0,1,33,120.755Z" transform="translate(-10 -110)"/></svg>')
}

.modal-header {
    margin-left: 5%!important;
    margin-right: 5%!important;
    margin-top: -1.25rem!important;
    margin-bottom: 0!important;
    height: 60px;
    padding: 1rem!important;
    color: #fff
}

.modal-header .close {
    color: #fff
}

.text-muted {
    color: #555!important;
    display: none
}

.font-size-custom,.font-size-custom input,.font-size-custom label {
    font-size: .8rem!important
}

.md-form .prefix~.form-text {
    padding-left: 2.6rem
}

#ChangePasswordLoading {
    display: none
}

.password-reveal,.change-password-reveal {
    cursor: pointer
}

#ChangePasswordError,#ContactEditError {
    display: none;
    color: #ff0000;
    font-weight: 400;
    font-size: .8rem
}

.modal-header .close {
    color: #fff
}

.dropdown-menu.dropdown-primary {
    left: auto;
    right: 0
}

.own-balance {
    min-width: 100px!important;
    display: inline!important;
    font-weight: 400
}

.own-username {
    font-weight: 400
}

.navbar {
    opacity: .9
}

.support-icon-top {
    padding-left: 20px!important;
    display: inline-block
}

#BrowserAdvice {
    display: none;
    position: fixed;
    max-width: 300px;
    top: 13vh;
    right: 5vw;
    z-index: 2000
}

#BrowserAdvice button {
    padding: .7rem 1.2rem!important
}

#BrowserAdvice .card-text-sub {
    font-size: .8rem!important
}

#NotificationsToast {
    position: fixed;
    width: 96vw
}

#NotificationsToast .toast {
    position: absolute;
    cursor: pointer;
    width: 96vw;
    max-width: 96vw;
    margin-left: 2vw;
    border-radius: 1rem;
    display: none
}

@media (min-width: 600px) {
    #SuccessAlert {
        max-width:96%;
        min-height: 50px;
        margin: 10px auto 0 auto
    }

    .navbar.scrolling-navbar {
        padding-top: 4px;
        padding-bottom: 4px
    }
}

@media (min-width: 992px) {
    .fixed-sn .page-footer .container-fluid {
        margin-left:6%;
        margin-right: 0
    }

    .navbar .notifications-nav .dropdown-menu {
        width: 23rem
    }

    .navbar.scrolling-navbar {
        padding-top: 12px;
        padding-bottom: 12px
    }

    .nav-custom li .nav-link {
        padding: 0 1rem!important
    }

    .nav-custom .nav-item+.nav-item {
        border-left: 1px solid #888
    }

    #NotificationsToast {
        width: 400px;
        top: 55px;
        right: 2px
    }

    #NotificationsToast .toast {
        width: inherit;
        max-width: 400px;
        margin-left: inherit;
        border-radius: .3rem
    }
}

@media (min-width: 1024px) {
    .fixed-sn .double-nav,.fixed-sn main,.fixed-sn footer {
        padding-left:10rem
    }

    .fixed-sn main {
        margin-left: 6%;
        margin-right: 0
    }

    main.thin {
        padding-left: 11rem!important
    }

    .double-nav .button-collapse {
        display: block;
        position: absolute;
        left: 10px;
        font-size: 1.5rem
    }

    #SuccessAlert {
        max-width: 400px;
        min-height: 50px;
        margin: 72px 15px 0 auto
    }
}

@media (min-width: 1200px) {
    main.thin {
        padding-left:10rem!important
    }
}

@media (min-width: 1601px) {
    main.thin {
        padding-left:8rem!important
    }
}

@media (max-width: 1023px) {
    #toggle {
        display:none
    }
}



#affiliates_tree .switch label span {
  font-size: 12px !important;
}


.switch label .lever{
    width: 2rem !important;
}

input.select-dropdown {
    font-size: .9rem!important;
}

html {
    overflow: -moz-scrollbars-vertical;
    overflow-y: scroll;
}

.select-all-commissions {
    width: 55px!important;
}

.modal-clear-hide {
    display: none;
}

.modal-header {
    margin-left: 5%;
    margin-right: 5%;
    margin-top: -1.25rem;
    height: 60px;
    padding: 1rem!important;
    color: #fff;
}

.modal-header .close {
    color: #fff;
}

label[for=UserSearch].active {
    transform: translateY(-110%) !important;
}

.form-check-input[type=radio]+label:after,.form-check-input[type=radio]+label:before {
    width: 14px!important;
    height: 14px!important;
    margin: 5px!important;
}

.form-check-input[type=radio]+label,.form-check-input[type=radio]:checked+label {
    padding-left: 28px!important;
}

.users-row-actions {
    min-width: 100px!important;
}

.users-row-for-delete {
    opacity: .5;
}

.card-body-category {
    padding: .5rem .7rem!important;
}

.form-check-input[type=checkbox]:checked+label:before,label.btn input[type=checkbox]:checked+label:after {
    width: 16px;
    height: 16px;
}

.form-check-input[type=checkbox]:checked+label:before,label.btn input[type=checkbox]:checked+label:before {
    width: 10px;
    height: 1.05rem;
}

.custom-form-check-input.form-check-input[type=checkbox]+label {
    padding-left: 25px!important;
}

.custom-form-check-input.form-check-input[type=checkbox]:checked+label:before {
    height: .9rem!important;
    top: 0!important;
    left: 0!important;
}

.custom-form-check-input.form-check-input[type=checkbox]:indeterminate+label:before {
    height: .8rem!important;
    top: -2px!important;
    left: -5px!important;
}

.text-muted {
    color: #555!important;
    display: none;
}

.switch label .lever {
    width: 2rem!important;
    height: .65rem!important;
}

.switch label .lever:after {
    width: 1rem!important;
    height: 1rem!important;
}

.switch label input[type=checkbox]:checked+.lever:after {
    left: 1rem!important;
}

.table-sub {
    width: 100%!important;
}

.form-modal-input,#ModalViewInfo {
    font-size: .9rem!important;
}

.font-size-custom i {
    font-size: 1.3rem!important;
}

.font-size-custom,.font-size-custom input,.font-size-custom label {
    font-size: .8rem!important;
}

.font-size-custom2 label {
    font-size: .9rem!important;
}

.no-button {
    padding: .4286rem 1.1rem;
}

.modal-view-info-content {
    padding-left: 0;
}

#ModalViewInfoAncestryData {
    font-style: italic;
}

.nested {
    padding-inline-start:5px;}

#ViewInfoTree {
    padding-left: 18px;
}

#users thead th {
    padding-bottom: 0;
}

#users_processing {
    height: 50px;
    font-size: 1rem!important;
    text-align: center;
    position: absolute;
    width: 96%;
    top: 165px;
    left: 0;
    right: 0;
    margin: auto;
    padding: 13px;
    z-index: 10;
}

#UsersAlert {
    display: none;
    position: fixed;
    z-index: 1050;
    max-width: 96%;
    min-height: 50px;
    left: 0;
    right: 0;
    margin: 1px 2% 0px 2%;
    border-radius: .40rem!important;
}

.jstree-node,.jstree-children,.jstree-container-ul {
    color: #4285f4!important;
}

.card.tree {
    opacity: .9!important;
}

.btn-cyan:not([disabled]):not(.disabled).active,.show>.btn-cyan.dropdown-toggle {
    background-color: #ff0000!important;
}

.btn-cyan:not([disabled]):not(.disabled):active {
    background-color: #00bcd4!important;
}

#users.dataTable tbody td {
    vertical-align: middle;
    padding: 5px;
}

#affiliates_tree {
    font-size: .8rem;
}

.modal .md-form {
    margin-bottom: 1rem!important;
}

.btn-action {
    width: 28px;
    height: 28px;
}

.btn-action-sub {
    font-size: .7rem!important;
    color: #59698d!important;
}

.btn-action i {
    line-height: 30px;
}

.btn-action .fas {
    font-size: .8rem!important;
}

.white-skin .btn-default {
    background-color: #2bbbad!important;
}

.white-skin .btn-default {
    background-color: #2bbbad!important;
}

.white-skin .btn-outline-default {
    border: 2px solid #2bbbad!important;
    color: #2bbbad!important;
}

.white-skin .btn-outline-secondary {
    border: 2px solid #a6c!important;
    color: #a6c!important;
}

.btn-action.btn-empty.btn.disabled {
    opacity: 0;
}

@media (max-width: 320px) {
    .btn-group .btn.section-select {
        padding-left:1rem;
        padding-right: 1rem
    }
}


.md-form:not(:has(input.datepicker)) ~ label.active,
.md-form:not(:has(input.timepicker)) ~ label.active {
    transform:translateY(-140%) !important;
}
.badge.p-2 {
    color: black !important;
}
#ModalAddBalance .modal-dialog, #ModalDeductBalance .modal-dialog {
    margin-top: 0;
}
