button, .btn, .btn-b{
    border: 0px solid transparent;
    display: flex;
    justify-content: center;
    font-size: inherit;
    font-weight: inherit;
    padding: 0px;
    background: var(--main-div);
    flex-wrap: nowrap;
    position: relative;
    border-radius: var(--br-main);
    box-shadow: var(--box-shadow-l);
    padding: 11px;
    gap: 10px;
    line-height: normal;
    align-items: center;
    cursor: pointer;
}

button img{
    height: 70%;
}

button:hover{
    transition: all 0.2s ease;
    box-shadow: var(--box-shadow-l);
    color: inherit;
    border: 0px solid transparent;
}

button span{
    width: max-content;
}

.form-floating>label {
    padding: 13px 10px;
}

.btn-hidden{
    
}

.btn-upload{
    background: #eee;
    cursor: pointer;
}

.sr-only, .fa-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.btn-b{
    padding: 0px 15px;
    align-items: center;
}

.btn-link{
    padding: 0px 15px;
}

.btn-xs{
    min-width: 30px;
    height: 30px;
}

.btn-xm{
    min-width: 36px;
    height: 36px;
    padding: 11px; 
}

.btn-xl{
    min-width: 40px;
    height: 40px;
    padding: 13px;
}

.btn-x{
    min-width: 44px;
    height: 44px;
    padding: 15px;   
}

.btn-xx{
    min-width: 55px;
    height: 55px;
    padding: 20px;  
}

.btn-xxxs{
    min-width: 16px;
    height: 16px;
    font-size: 8px;
}

.btn-xxs{
    min-width: 20px;
    height: 20px;
    padding: 18px;
    padding: 3px;
    font-size: 8px;
}

.btn-xxm{
    min-width: 50px;
    height: 50px;
    padding: 18px;  
}

/* table */
td, th, tr{
    vertical-align: middle;
}

.my-form{
    flex-direction: column;
    display: flex;
    gap: 10px;
}

.my-form .block-left, .my-form .block-right {
    gap: 2px;
}

/* form */
input, optgroup, select, textarea, .form-select, .form-input, .form-control{
    /* color: inherit; */
    font-weight: 400 !important;
    outline: none !important; 
    margin: 0 !important;
    padding: 5px 15px;
    border: 2px solid #99999985;
    height: 44px;
    border-radius: var(--br-main);
    box-shadow: var(--shadow-0);
    background-color: var(--main-div);
    outline: none !important;
}

.form-select{
    padding: 5px 30px 0px 15px;
}

input[type="range"] {
    border: 0;
    background-color: transparent !important;
}

textarea{
    width: 100%;
    min-height: 120px;
}

.form-control[type=file] {
    overflow: hidden;
    height: min-content !important;
}

.form-control:focus, .form-control:hover, .form-control:active, select:active, select:focus{
    box-shadow: var(--box-shadow-l);
}

.form-switch .form-check-input {
    width: 45px;
    height: 26px !important;
    box-shadow: 0px 0px 0px;
}

.form-floating>.form-control {
    padding: 5px 15px;
    height: 44px;
}


/**/
.form-gap{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Remove outline on the forms and links */
:active, :focus {
    outline: 0;
    outline-offset: 0;
    box-shadow: 0px 0px 0px transparent;
}

.btn-circle{
    padding: 16px;
}

.btn-circle:nth-child(2){
    margin-left: 5px;
}

.btn-ellipse{
    padding: 0px;
}

.circle-web{
    padding: 16px;
}

.autoExpand{
    display: block;
    box-sizing: padding-box;
    overflow: hidden;
}

.form-select > img, .dropdown-item > img{
    width: 30px;
}

.b-input .select{
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 235px;
    overflow: auto;
    margin: 15px -5px 0px 0px;
    padding-right: 10px;
}

.form-check-input{
    min-width: 24px;
    height: 24px;
    padding: 0px;
    margin-right: 7px;
    box-shadow: 0px 0px 5px #00000038;
    border: 2px solid black;
}

.form-check-label span.fi-rr-check{
    display: none;
}

.form-check-input label{
    margin-top: 5px;
}

.form-check {
    align-items: center;
    justify-content: stretch;
    display: flex;
    margin-bottom: 0px;
    position: relative;

    padding: 0;
    gap: 5px;
}

.form-check label{
    margin-top: 5px;
    width: 100%;
}

/* labels */

.label_smail {
    padding: 3px 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ebebeb;
    color: inherit;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--br-main);
}

/* background color */

.c-primary{
    background: var(--bg-primary) !important;
    color: white !important;
}

.c-secondary{
    background: var(--bg-secondary) !important;
    color: white !important;
}

.c-transparent{
    background: transparent !important;
    color: inherit !important;
}

.c-primary:hover, 
.c-secondary:hover,
.c-transparent{
    opacity: 0.8;
}

/*  */
.table>tbody {
    border: 0px !important;
}

.table>thead>tr>th{

}

.table>thead>tr:nth-child(2n){
    background-color: var(--bg-secondary);
    color: white;
}

.table>thead>tr{
    background-color: var(--main-bg);
}

.table td, .table th{
    border: 0px;
}

table.dataTable>tbody>tr:nth-child(2n){
    background-color: var(--main-bg);
}

.dataTables_wrapper .item{
    background-color: transparent !important;
    margin: 0px 5px 0px -5px;
}

.dataTables_wrapper .item .item-center{
    padding: 0;
    font-size: 10px;
    justify-content: center;
}

.dataTables_wrapper .item .item-center .item-name a{
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.dataTables_wrapper .item .item-images{
    background-color: transparent !important;
}

.dataTables_wrapper input, .dataTables_wrapper select {
    /* width: calc(100% + 7px); */
    box-shadow: var(--shadow-0) !important;
    position: relative;
}

.dataTables_paginate a{
    background: transparent;
    color: inherit;
    border: 0;
    opacity: 0.8;
}

.dataTables_paginate a:hover{
    color: inherit;
    background-color: transparent;
    opacity: 1;
}

.dataTables_paginate .active a, .dataTables_paginate .active a:hover{
    opacity: 1;
    background-color: var(--bg-secondary);
}


/*  */
.form-switch{
    margin: 0px;
    left: 0;
}

.switch3{
    position: relative;
    display: inline-block;
    width: 69px;
    height: 36px;
    border-radius: var(--br-alt);
    background-color: #f3f4f4;
    cursor: pointer;
    transition: all .3s;
    overflow: hidden;
    box-shadow: 0px 0px 2px rgb(0 0 0 / 30%);
}

.switch3 input{
    display: none;
}

.switch3 input:checked + div{
    left: calc(72px - 32px);
    box-shadow: 0px 0px 0px white;
}

.switch3 div{
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    top: 5px;
    left: 5px;
    box-shadow: 0px 0px 1px rgb(150 150 150);
    transition: all .3s;
}

.switch3 div:before, .switch3 div:after{
    position: absolute;
    content: '';
    width: 30px;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    font-weight: bold;
    top: -5px;
}

.switch3 div:before{
    content: 'ВЫК';
    color: rgb(120,120,120);
    left: 100%;
}

.switch3 div:after{
    content: 'ВКЛ';
    right: 100%;
    color: white;
}

.switch3-checked{
    background-color : #e74c3c;
    box-shadow: none;
}

/* .select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    margin-left: 5px!important;
    margin-right: -5px!important;
    color: inherit!important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bg-secondary) !important;
    color: white !important;
    display: flex;
    flex-direction: row-reverse;
    border-radius: var(--br-main) !important;
    padding: 8px 15px !important;
    border: 0px solid black !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    white-space: unset !important;
}

.select2-selection--single {
    height: 100% !important;
    outline: none !important;
    display: flex !important;
    align-items: center;

    border-width: 2px;
    border-style: solid;
    border-color: #99999985; 
    height: 44px !important;
    border-radius: var(--br-main);
    box-shadow: var(--box-shadow-l) !important;
    background-color: var(--main-div);
}

.select2-selection__rendered{
    word-wrap: break-word !important;
    text-overflow: inherit !important;
    white-space: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 6px !important;
    right: 13px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 10px 6px 0 6px !important;
}

.btn-and-text{
    align-items: flex-start !important;
    display: flex;
    padding: 0px 15px;
    margin-left: -15px;
    width: calc(100% + 15px);
}

.btn-and-text > button{
    width: max-content !important;
    margin-right: 15px;
    min-width: max-content !important;
}

.add-form .block-left .form-label {
    margin-bottom: 1px;
    width: 100%;
}


.form-check-input {
    clear: left;
}

/* form-switch */
.form-switch .form-check-input {
    width: 2em !important;
    margin-left: -2.5em !important;
    border-radius: 2em !important;
}
  
.form-switch.form-switch-sm {
    margin-bottom: 0.5rem; /* JUST FOR STYLING PURPOSE */
}
  
.form-switch.form-switch-sm .form-check-input {
    height: 1rem;
    width: calc(1rem + 0.75rem);
    border-radius: 2rem;
}
  
.form-switch.form-switch-md {
   /* margin-bottom: 1rem; JUST FOR STYLING PURPOSE */
    margin: 0px;
    padding: 0px;
}
  
.form-switch.form-switch-md .form-check-input {
    height: 1.5rem;
    width: calc(2rem + 0.75rem);
    border-radius: 3rem;
    margin: 0px;
    background-repeat: no-repeat;
}
  
.form-switch.form-switch-lg {
    margin-bottom: 1.5rem; /* JUST FOR STYLING PURPOSE */
}
  
.form-switch.form-switch-lg .form-check-input {
    height: 2rem;
    width: calc(3rem + 0.75rem);
    border-radius: 4rem;
}
  
.form-switch.form-switch-xl {
    margin-bottom: 2rem; /* JUST FOR STYLING PURPOSE */
}
  
.form-switch.form-switch-xl .form-check-input {
    height: 2.5rem;
    width: calc(4rem + 0.75rem);
    border-radius: 5rem;
}

.form-switch.form-switch-access .form-check-input{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' id='lock'%3E%3Cpath d='M12,13a1.49,1.49,0,0,0-1,2.61V17a1,1,0,0,0,2,0V15.61A1.49,1.49,0,0,0,12,13Zm5-4V7A5,5,0,0,0,7,7V9a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17a3,3,0,0,0,3-3V12A3,3,0,0,0,17,9ZM9,7a3,3,0,0,1,6,0V9H9Zm9,12a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H17a1,1,0,0,1,1,1Z'%3E%3C/path%3E%3C/svg%3E");
    width: 40px !important;
    height: 40px !important;
    background-position: center;
    background-size: 24px;
    cursor: pointer;
}

.form-switch.form-switch-access .form-check-input:checked{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' id='unlock'%3E%3Cpath d='M17,9H9V7a3,3,0,0,1,5.12-2.13,3.08,3.08,0,0,1,.78,1.38,1,1,0,1,0,1.94-.5,5.09,5.09,0,0,0-1.31-2.29A5,5,0,0,0,7,7V9a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17a3,3,0,0,0,3-3V12A3,3,0,0,0,17,9Zm1,10a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H17a1,1,0,0,1,1,1Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-color: #fe521a;
    border-color: #fe521a;
}


.form-check-input:checked {
    background-color: #fe531b;
    border-color: #fe531b;
}

.x-switch{
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0px;
    padding: 5px 10px 5px 20px;
}

.micro-btn{
    line-height: 1;
}

.micro-btn em{
    font-size: 10px;
    display: flex;
    width: 100%;
    justify-content: center;
    font-weight: 500;
}

/**/
.add-form-text{
    padding: 15px 15px;
    justify-content: center;
    align-items: self-start;
    display: flex;
    flex-direction: row;
    gap: 5px;
    left: -15px;
    position: relative;
    width: calc(100% + 30px);
}

.add-form-text .item-bottom{
    width: auto;
}

.add-form-text .text-box{
    max-height: 50vh;
    overflow: auto;
}

.add-form-text textarea{
    border: 0px;
    background-color: var(--main-bg);
    overflow: hidden;
}

.add-form-text .item-user{
    width: fit-content;
}

.add-form-text .item-center{
    position: relative;
    gap: 0;
}

.word_count_value {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0.4;
}

.datepicker-native {
    position: relative;
}
.datepicker-native-input {
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    opacity: 0;
}
.datepicker-native-input::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}


.tox .tox-statusbar, 
.tox:not(.tox-tinymce-inline) .tox-editor-header,
.tox .tox-edit-area__iframe{
    background-color: #00000000 !important;
    color: white;
}