body[data-theme=dark] .accordion-button:not(.collapsed) {
    color: #fff
}

.lead{
    color: #fff;
}
body:not([data-theme="dark"]) .text-dark{
    --bs-dark-rgb: #fff;
}
body[data-theme="dark"] .lead{
    color: #3B4758;
}
.modal-content{
    background-color: var(--bs-custom-color-gray-1);
}

.modal-header .btn svg{
    fill: #EEF0F4;
}

body[data-theme=dark] .modal-header .btn svg{
    fill: #374253;
}

:not(.btn-check) + .btn:active, .modal-header .btn:first-child:active, .modal-header .btn.active, .modal-header .btn.show{
    color: var(--bs-custom-color-gray-1);
    background-color: var(--bs-custom-color-gray-1);
    border-color: var(--bs-custom-color-gray-1);
}

.ck-editor__editable[role="textbox"] {
    min-height: 100px;
}

.pe-pointer {
    cursor: pointer;
}
.pe-default {
    cursor: default;
}

.ql-editor.ql-blank::before {
    color: #7D8FA9;
    opacity: 0.3;
}

.quilleditor-textarea .ql-toolbar {
    background: #1D232C;
    border: 0.5px solid #3B4758;
    border-radius: 6px 6px 0px 0px;
}

.quilleditor-textarea .ql-toolbar .ql-formats {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
}

.quilleditor-textarea .ql-toolbar .ql-formats button {
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
}

.quilleditor-textarea .ql-toolbar .ql-formats button svg {
    width: 100%;
    height: 100%;
}

.quilleditor-textarea .quilleditor,
.quilleditor-textarea .quilleditor-map {
    border: unset;
}

.ql-editor.ql-blank::before {
    left: 20px;
}

body[data-theme="dark"] .ql-editor {
    background: #fff;
    border-radius: 6px !important;
}
body[data-theme="dark"] .ql-editor.ql-blank::before{
    color: #3B4758;
    opacity: 0.3;

}
body:not([data-theme="dark"]) .quilleditor-textarea .quilleditor .ql-editor,
body:not([data-theme="dark"]) .quilleditor-textarea .quilleditor-map .ql-editor {
    padding: 12px 10px 12px 20px;
    height: 88px;
    background: #3B4758;
    color: #BAC4D1;
    border-radius: 0px 0px 6px 6px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}
body[data-theme="dark"] .quilleditor-textarea .ql-toolbar {
    background: #BAC4D1;
    border: 0.5px solid #BAC4D1;
    border-radius: 6px 6px 0px 0px;
}
body[data-theme="dark"] .quilleditor-textarea .ql-toolbar svg{
    fill: #3B4758;
}

body[data-theme="dark"] .quilleditor-textarea .quilleditor .ql-editor,
body[data-theme="dark"] .quilleditor-textarea .quilleditor-map .ql-editor {
    padding: 12px 10px 12px 20px;
    height: 88px;
    background: #fff;
    color: #3B4758;
    border-radius: 0px 0px 6px 6px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.anketa-textarea {
    max-width: 500px;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    background: #3B4758;
    border-radius: 6px;
    border: 1px solid #BAC4D1;
    color: #fff;
}

.anketa-textarea::placeholder {
    color: var(--bs-custom-color-gray-6);
}

body[data-theme="dark"] .anketa-textarea {
    max-width: 500px;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #BAC4D1;
    color: #3B4758;
}

body[data-theme="dark"] .anketa-textarea::placeholder {
    color: #BAC4D1;
}

.form-control[type="file"]::file-selector-button {
    border-color: #3B4758;
}

.form-control::file-selector-button {
    background-color: #319DFF;
}

.form-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: #0077E4;
}

.quilleditor-input-container .ql-toolbar.ql-snow {
    display: none;
}

.quilleditor-input-container .quilleditor-input {
    border: unset;
}

.ql-toolbar.ql-snow {
    padding: 0;
}

.quilleditor.empty-toolbar .ql-editor,
.quilleditor-map.empty-toolbar .ql-editor {
    border-radius: 6px !important;
}

.quilleditor-input {
    padding: 0;
}

.quilleditor-input .ql-editor {
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}

.quilleditor .ql-editor {
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}

.ql-editor.ql-blank::before {
    font-style: normal;
}

#tab-panel {
    justify-content: start;
}


.textarea-emoji-control {
    display: flex;
    cursor: pointer;
    width: 20px;
    height: 20px;
    right: 10px;
    top: 10px;
}

.accordion-item[draggable="true"] {
    opacity: 0.65;
}

.b-main-accordion .accordion-button .accordion-draggler {
    position: absolute;
    left: 8px;
    width: 24px;
    height: 24px;
    transition: var(--bs-accordion-btn-icon-transition);
}

.template-form__error-text {
    color: #dc3545;
}

[contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

.b-header-block {
    height: 60px;
}

.b-main-block {
    padding: 60px 0rem 0 0rem;
}

@media (min-width: 992px) {
    .b-main-block {
        padding: 60px 0.625rem 0 0.625rem;
    }
}

.accordion-button {
    padding: calc(1.5rem - 10px) var(--bs-accordion-btn-padding-x);
}

.count-fields {
    font-size: 12px;
    font-weight: 300;
}

.b-main-accordion__del>.b-img {
    transition: fill 0.4s;
}

.b-main-accordion__del>.b-img:hover {
    fill: rgb(217, 217, 217);
    transition: fill 0.2s;
}

label.form-check-label {
    transition: color 0.4s;
    cursor: pointer;
    display: contents;
}

label.form-check-label:hover {
    color: #99afce;
    transition: color 0.2s;
}

.form-check input[type="checkbox"] {
    transition: border-color 0.4s;
}

.form-check:hover input[type="checkbox"] {
    border-color: #99afce;
    transition: border-color 0.2s;
}

.back_fields {
    position: relative;
    margin: 16px;
    width: 310px;
    min-height: 422px;
    background-color: var(--bs-custom-color-gray-2);
    color: #fff;
}

.b-main-tabs__item {
    padding: 16px;
}

.tab-content>.active {
    display: flex;
    flex-direction: column-reverse;
    }

.b-main-tabs__item:not(:last-child) {
    border-bottom: 1px solid #ffffff55;
}

.fullname {
    padding: 4px 16px;
}

.dropdown-divider {
    border-top: 1px solid #ffffff55;
    margin: 0;
}

.login-form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 60px);
}

.login-form__container {
    background-color: var(--bs-custom-color-gray-1);
    padding: 40px 30px;
    border-radius: 24px;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anketa-form__step3-label {
    margin-bottom: 0 !important;
    width: 115px;
    flex-shrink: 0;
}

.anketa-form__step3-label+.b-form-1__control {
    flex-shrink: 0;
}

.anketa-form__step3-inputgroup {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    height: min-content;
}

body:not([data-theme="dark"]) .form-input {
    background-color: var(--bs-custom-color-gray-2);
    color: #ffffff;
}
body[data-theme="dark"] .form-control{
    background-color: #fff;
    color: #000;
}
body[data-theme="dark"] .form-control.title,
body[data-theme="dark"] .form-control.message{
    background-color: #3B4758;
}
body[data-theme="dark"] .textarea-emoji-control svg{
    fill: #3B4758;
}
body[data-theme="dark"] .form-control.title svg,
body[data-theme="dark"] .form-control.message svg{
    fill: #fff;
}

body[data-theme="dark"] .form-control::file-selector-button{
    border: unset;
}
body:not([data-theme="dark"]) .form-select{
    background-color: var(--bs-custom-color-gray-2);
    border: 1px solid #BAC4D1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
body[data-theme="dark"] .form-select{
    background-color: #fff;
    color: #000;
    border: 1px solid #BAC4D1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
body[data-theme="dark"] .form-check-input:not(:checked){
    background-color: #fff;
}
body[data-theme="dark"] .b-form-checkbox .form-check-label{
    color: var(--bs-custom-color-gray-2);
}
.form-input::-moz-placeholder {
    color: var(--bs-custom-color-gray-6);
    font-size: 0.875rem;
}

.form-input::placeholder {
    color: var(--bs-custom-color-gray-6);
    font-size: 0.875rem;
}

.form-input:focus {
    color: #ffffff;
    background-color: var(--bs-custom-color-gray-2);
    border-color: var(--bs-custom-color-gray-2);
    outline: 0;
    box-shadow: 0 0 0 0 rgba(0, 119, 228, 0.25);
}

.form-input-label {
    font-weight: 300;
    font-size: 14px;
    line-height: 24px;
}

.b-aside-block__logo .b-img-height.light {
    display: block;
    width: 165px;
}

.b-aside-block__logo .b-img-height.dark {
    display: none;
    width: 165px;
}

body[data-theme="dark"] .b-aside-block__logo .b-img-height.light {
    display: none;
    width: 165px;
}

body[data-theme="dark"] .b-aside-block__logo .b-img-height.dark {
    display: block;
    width: 165px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

body:not([data-theme="dark"]) .air-datepicker{
    --adp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --adp-font-size: 14px;
    --adp-width: 246px;
    --adp-z-index: 100;
    --adp-padding: 4px;
    --adp-grid-areas: "nav" "body" "timepicker" "buttons";
    --adp-transition-duration: .3s;
    --adp-transition-ease: ease-out;
    --adp-transition-offset: 8px;
    --adp-background-color: var(--bs-custom-color-gray-2);
    --adp-background-color-hover: var(--bs-custom-color-gray-3);
    --adp-background-color-active: var(--bs-custom-color-gray-4);
    --adp-background-color-in-range: rgba(92, 196, 239, 0.05);
    --adp-background-color-in-range-focused: rgba(229, 232, 234, 0.8);
    --adp-background-color-selected-other-month-focused: #8ad5f4;
    --adp-background-color-selected-other-month: #a2ddf6;
    --adp-color: #ffffff;
    --adp-color-secondary: #c5c5c5;
    --adp-accent-color: #4eb5e6;
    --adp-color-current-date: var(--adp-accent-color);
    --adp-color-other-month: #dedede;
    --adp-color-disabled: #aeaeae;
    --adp-color-disabled-in-range: #939393;
    --adp-color-other-month-hover: #c5c5c5;
    --adp-border-color: #dbdbdb;
    --adp-border-color-inner: #efefef;
    --adp-border-radius: 4px;
    --adp-border-color-inline: #d7d7d7;
    --adp-nav-height: 32px;
    --adp-nav-arrow-color: var(--adp-color-secondary);
    --adp-nav-action-size: 32px;
    --adp-nav-color-secondary: var(--adp-color-secondary);
    --adp-day-name-color: #ff9a19;
    --adp-day-name-color-hover: #8ad5f4;
    --adp-day-cell-width: 1fr;
    --adp-day-cell-height: 32px;
    --adp-month-cell-height: 42px;
    --adp-year-cell-height: 56px;
    --adp-pointer-size: 10px;
    --adp-poiner-border-radius: 2px;
    --adp-pointer-offset: 14px;
    --adp-cell-border-radius: 4px;
    --adp-cell-background-color-hover: var(--adp-background-color-hover);
    --adp-cell-background-color-selected: #5cc4ef;
    --adp-cell-background-color-selected-hover: #45bced;
    --adp-cell-background-color-in-range: rgba(92, 196, 239, 0.1);
    --adp-cell-background-color-in-range-hover: rgba(92, 196, 239, 0.2);
    --adp-cell-border-color-in-range: var(--adp-cell-background-color-selected);
    --adp-btn-height: 32px;
    --adp-btn-color: var(--adp-accent-color);
    --adp-btn-color-hover: var(--adp-color);
    --adp-btn-border-radius: var(--adp-border-radius);
    --adp-btn-background-color-hover: var(--adp-background-color-hover);
    --adp-btn-background-color-active: var(--adp-background-color-active);
    --adp-time-track-height: 1px;
    --adp-time-track-color: #dedede;
    --adp-time-track-color-hover: #b1b1b1;
    --adp-time-thumb-size: 12px;
    --adp-time-padding-inner: 10px;
    --adp-time-day-period-color: var(--adp-color-secondary);
    --adp-mobile-font-size: 16px;
    --adp-mobile-nav-height: 40px;
    --adp-mobile-width: 320px;
    --adp-mobile-day-cell-height: 38px;
    --adp-mobile-month-cell-height: 48px;
    --adp-mobile-year-cell-height: 64px
}

.air-datepicker-overlay {
    --adp-overlay-background-color: rgba(0, 0, 0, .3);
    --adp-overlay-transition-duration: .3s;
    --adp-overlay-transition-ease: ease-out;
    --adp-overlay-z-index: 99
}
body:not([data-theme="dark"]) .air-datepicker--pointer::after{
    background-color: var(--bs-custom-color-gray-2);
}


.anketa-preview-image{
    max-height: 150px;
}
.anketa-title{
    font-size: 20px;
    line-height: 26px;
}
.form-control{
    padding-right: calc(1.5em + 0.75rem);
}
@media (min-width: 768px){
    .b-main-tpl {
        padding: 1.125rem 0.5rem 1rem 0.5rem;
    }
}
.temolate-list-row{
    --bs-gutter-x: 1rem;
}
.btn-view{
    color: #374253 !important;
}
.btn-view svg{
    fill: #374253 !important;
}
.search-form{
    position: relative;
}
.search-form button{
    position: absolute;
    right: 7px;
    top: 7px;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
}

.page-link {
  position: relative;
  display: block;
  color: #0d6efd;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .page-link {
    transition: none;
  }
}
.page-link:hover {
  z-index: 2;
  color: #0a58ca;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 3;
  color: #0a58ca;
  background-color: #e9ecef;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.page-item:not(:first-child) .page-link {
  margin-left: -1px;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

.page-link {
  padding: 0.375rem 0.75rem;
}

.page-item:first-child .page-link {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.pagination-lg .page-link {
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
}

.pagination-lg .page-item:first-child .page-link {
  border-top-left-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
}

.pagination-lg .page-item:last-child .page-link {
  border-top-right-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}

.pagination-sm .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.pagination-sm .page-item:first-child .page-link {
  border-top-left-radius: 0.2rem;
  border-bottom-left-radius: 0.2rem;
}

.pagination-sm .page-item:last-child .page-link {
  border-top-right-radius: 0.2rem;
  border-bottom-right-radius: 0.2rem;
}

.pagination ul li {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "OnestMedium1602";
    border-radius: 4px;
    transition: opacity 0.2s linear;
  }
  @media (max-width: 991px) {
    .pagination ul li {
      width: 36px;
      height: 36px;
    }
  }
  .pagination ul li:hover {
    opacity: 0.8;
  }
  .pagination ul li.active {
    background: rgba(32, 35, 51, 0.14);
  }
  @media (max-width: 991px) {
    .pagination ul li.active {
      background: transparent;
    }
  }
  .pagination ul li.active:hover {
    opacity: 1;
  }
  .pagination ul li.active a {
    pointer-events: none;
  }

.first-link.active a {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}
.paginator-container{
    margin-bottom: 40px;
}
.cardlog-row{
    padding: 12px 0;
    border-bottom: #6c757d 1px solid;
}
.fields p{
    margin-bottom: 4px;
}
.btn-view:active{
    background-color: #d6a511 !important;
    border-color: #d6a511 !important;
}
.table_day:hover > div > .add_promotion,
.table_day:hover > div > .add_push {
  /* display: block !important; */
  opacity: 1 !important;
}

.ck figure.table{
  width: unset;
  display: table;
  margin: .9em auto;
  margin-bottom: 0.9em;
  float: unset !important;
}
.docs-side-bar{
    font-size: 0.75rem;
    border-right: 1px solid #d5d5d5;
    margin-top: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.docs-side-bar a.btn{
    padding: 4px;
}
.docs-side-bar ol,
.docs-side-bar ul{
    padding-left: 0.75rem;
    margin-bottom: 0;
}
.docs-side-bar li{
    list-style: none;
}
.docs-side-bar .lead{
    font-size: 1rem;
    text-align: start;
    display: inherit;
}
@media (max-width: 991.98px) {
    a.calendar_day{
        width: 42px;
        height: 42px;
    }
}
@media (min-width: 992px) {
    .btn.calendar_day{
        font-size: 12px;
        font-weight: 400;
    }
}


body:not([data-theme="dark"]) .multiple-select-wrapper .choices__inner{
    background-color: #161B21;
    border-radius: 0.375rem;
    color: #ffffff;
}
body:not([data-theme="dark"]) .multiple-select-wrapper .choices__input{
    background-color: #161B21;
    color: #ffffff;
}
body:not([data-theme="dark"]) .multiple-select-wrapper .choices__list{
    background-color: #161B21;
    color: #ffffff;
}
body:not([data-theme="dark"]) .multiple-select-wrapper .choices__item.is-highlighted{
    background-color: #3B4758 !important;
    color: #ffffff;
}
.b-aside-nav > .nav > .nav-item > .nav-link{
    white-space: nowrap;
}
.image-block{
    position: relative;
}
.image-block img{
    aspect-ratio: 634/246;
    object-fit: cover;
}
.image-block .btn-close{
    position: absolute;
    top: 16px;
    right: 8px;
    background-color: #f2f2f2;
}

.air-datepicker-global-container{
    z-index: 9999;
}

.form-control::placeholder{
    opacity: 0.4;
}

body:not([data-theme="dark"]) .card-new{
    background-color: #1d232c;
}
body[data-theme="dark"] .nav-tabs .nav-link.active,
body[data-theme="dark"] .nav-tabs .nav-item.show .nav-link{
    color: var(--bs-nav-tabs-link-active-color);
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    border-bottom-color: #fff;
}
body:not([data-theme="dark"]) .nav-tabs .nav-link.active,
body:not([data-theme="dark"]) .nav-tabs .nav-item.show .nav-link{
    color: rgba(var(--bs-light-rgb), var(--bs-text-opacity)) !important;
}

@media (min-width: 768px){
.w-md-50 {
    width: 50% !important;
}}

.chop-cover-from {
    border-width: 1px;
    border-color: #ffffff;
    border-style: solid;
    padding: 1%;
    border-radius: 7px;
}

.chop-cover-from__del {
    position: relative;
    left: 90%;
    top: 22px;
    padding: 0px;
}
.chop-cover-from__del > .b-img {
  fill: var(--bs-white);
}

.conditions_success {
    background-color: #45f72a24 !important;
}

.conditions {
    background-color: #f7494924 !important;
}

.program-checked {
    background-color: white;
    max-width: 15px;
    height: 15px;
}

.program-not-checked {
    background-color: white;
    max-width: 16px;
    height: 16px;
    border-radius: 50%;
}

.QR3 {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    img {
       background-color: white;
       border-radius: 10% 10% 0% 0%;
    }
    span {
        width: 115px;
        background-color: #ffffff;
        border-radius: 0px 0px 10px 10px;
        color: black;
        padding-bottom: 5px;
    }
}

.time-warning {
    color: rgb(220, 53, 69) !important;
    font-size: 12px;
    font-weight: 300;
}

.b-img {
    display: inline-block;
    max-width: unset;
    height: 100%;
}

.anketa-tooltip {
    width: 21px;
    display: block;
    background: #3b4758;
    border-radius: 50%;
    text-align: center;
    color: black !important;
}

.anketa-tooltip:hover {
    color: white !important;
    border: 1px solid white;
}

.push-select-row:hover {
    background: #4b596f !important;
}

.show-password-btn {
   border: 1px solid #BAC4D1;
}

.show-password-btn:hover {
   border: 1px solid #BAC4D1;
}

body[data-theme="dark"] .show-password-btn{
    background-color: #fff;
    color: #000;
}

body:not([data-theme="dark"]) .show-password-btn {
    background-color: var(--bs-custom-color-gray-2);
    color: #ffffff;
}
