html, body {
    overscroll-behavior: none;
}

.start-time {
    border-bottom: 1px solid gray;
    border-top: none;
    border-left: none;
    border-right: none;
    background: transparent;
    margin: 0 3%;
    width: 40%;
}

.width-100 {
    width: 100%;
}

.mb-10 {
    margin-bottom: 10px;
}

.bold-text {
    font-weight: bold;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: none;
}

.table th {
    border-top: none;
    border-bottom: none;
}

.table th:nth-child(1) {
    border-radius: 5px 0 0 5px;
}

.table th:nth-last-child(1) {
    border-radius: 0 5px 5px 0;
}

.table-class::after {
    height: 1em;
    display: table-row;
    content: '';
}

.table {
    border-collapse: separate;
}

.table thead th {
    border-bottom: none;
}

.table tbody tr:nth-child(1) > td:nth-child(1) {
    border-radius: 5px 0 0 0;
}

.table tbody tr:nth-child(1) > td:nth-last-child(1) {
    border-radius: 0 5px 0 0;
}

.table tbody tr:nth-last-child(1) > td:nth-child(1) {
    border-radius: 0 0 0 5px;
}

.table tbody tr:nth-last-child(1) > td:nth-last-child(1) {
    border-radius: 0 0 5px 0;
}

.table thead td {
    border-right: 1px solid #dee2e6;
}

.table tbody td {
    background: white;
}

.table .bg-danger td {
    background: #bd535c;
}

.margin-bottom-link {
    margin-bottom: 10px;
}

.workday-schedule {
    margin-bottom: 30px;
}

.stop-time {
    border-bottom: 1px solid gray;
    border-top: none;
    border-left: none;
    border-right: none;
    background: transparent;
    width: 40%;
    margin: 0 3%;
}

.none-bold {
    font-weight: normal !important;
}

.closed {
    display: none;
}

.currently-open {
    padding: 5px;
    background: green;
}

.currently-closed {
    padding: 5px;
    background: red;
}

.hidden {
    display: none;
}

.questions-delimiter {
    font-size: 26px;
    font-weight: bold;
    padding-left: 200px;
    margin-top: 40px;
}

.row.question {
    border: 1px solid black;
    margin-top: 10px;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

.add-question {
    width: 100%;
    padding-top: 20px;
    margin-bottom: 15px;
}

.remove-question {
    width: 100%;
    padding-top: 20px;
    margin-bottom: 15px;
    text-align: right;
    margin-right: 10px;
}

.border-green {
    border: 2px solid green
}

.border-news {
    border: 1px solid black;
}

.carousel-item .btn {
    color: white;
}

.logo {
    width: 60px;
    margin-left: 15px;
}

.logo-name {
    font-size: 17px;
    letter-spacing: 1px;
    font-weight: bold;
    padding-left: 15px;
}

.fs-15 {
    font-size: 15px;
}

body {
    font-size: 14px;
}

.pr-10 {
    padding-right: 8px;
}

.appearance {
    font-size: 14px;
    padding: 2px 10px;
    font-weight: bold;
    margin-bottom: 10px;
}

.width-200 {
    width: 200px;
}

.btn {
    font-size: 12px;
}

.form-control {
    font-size: 14px;
}

.badge {
    font-size: 14px;
    line-height: 15px;
}

.model-info {
    margin-top: 30px;
    margin-bottom: 50px;
    width: 100%;
    background: white;
    padding: 25px 15px;
    box-shadow: 0 0 10px #dddddd;
    border-radius: 5px;
}

.model-info-wrapper {
    width: 100%;
    background: white;
    padding: 25px 15px;
    box-shadow: 0 0 10px #dddddd;
    border-radius: 5px;
}

.user-avatar {
    margin-top: 30px;
    background: white;
    text-align: center;
    box-shadow: 0 0 10px #dddddd;
    border-radius: 5px;
    padding: 2% 0;
}

.user-info {
    width: 100%;
}

.user-info span {
    width: 100%;
    float: left;
}

.model-height {
    width: 100%;
    display: inline-block;
}

.user-role {
    color: darkgrey;
}

.big-image {
    width: 40%;
    margin: 5%;
}

.fs-20 {
    font-size: 20px;
}

.fs-22 {
    font-size: 22px;
}

.field-margin {
    margin-bottom: 25px;
}

.field-margin strong {
    line-height: 30px;
}

.mt-15 {
    margin-top: 15%;
}

@media (max-width: 770px) {
    .user-avatar {
        display: inline-block;
        width: 100%;
    }

    .user-page-info {
        display: inline-block;
    }
}

@media (min-width: 771px) {
    .user-avatar {
        height: 80%;
        width: 95%;
    }

    .user-page-info {
        height: 80%;
    }
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before {
    bottom: .5em;
}

.form-group p {
    margin-bottom: 0;
}

.form-group p label {
    margin-right: 5px;
}

.form-radio {
    margin-right: 15px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #80bdff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #208744;
    border: 1px solid #067c30;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-left: 3px;
    border-right: none;
    color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background-color: #208744;
    color: #fff;
}

.select2-container--default .select2-dropdown .select2-search__field:focus, .select2-container--default .select2-search--inline .select2-search__field:focus {
    outline: none;
    border: none;
    height: 22px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-left: 10px;
}

.mt-30px {
    margin-top: -30px;
}

.clear-search {
    margin-left: -30px;
    padding-top: 10px;
    padding-left: 10px;
    cursor: pointer;
    width: 30px;
}

.clear-search:hover {
    background-color: grey;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0 56px;
}

.form-actions > * {
    margin: 0 !important;
}

.edit_and_go_button {
    margin-top: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 100px;
}

.bg-status-cancelled {
    padding: 20px;
    background-color: #FFF2E7;
}

.bg-status-postponed {
    padding: 20px;
    background-color: #D7E5E7;
}

.bg-status-rescheduled {
    padding: 20px;
    background-color: #E9EEFC;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #c2c7d0;
    border-radius: 5px;
    outline: none;
    padding: 7px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 14px;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 24px;
}

.dataTables_wrapper .table-striped tbody tr.odd td {
    background-color: #f2f2f2;
}

.dataTables_wrapper .table-striped tbody tr.even td {
    background-color: #ffffff;
}

fieldset, legend, label {
    all: revert;
}

legend {
    font-weight: bold;
    font-size: 1.1em;
    padding: 0 5px;
}

fieldset {
    border: 1px solid #c2c7d0;
    border-radius: 5px;
    padding: 10px 15px;
    display: flex;
    gap: 15px;
}

.toggle {
    --width: 120px;
    --height: calc(var(--width) / 4);

    position: relative;
    display: inline-block;
    width: var(--width);
    height: var(--height);
    border-radius: var(--height);
    cursor: pointer;
}

.toggle input {
    display: none;
}

.toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--height);
    border: 2px solid #ff0000;
    transition: all 0.4s ease-in-out;
}

.toggle .slider::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(var(--height) * 0.5);
    height: calc(var(--height) * 0.5);
    border-radius: calc(var(--height) / 2);
    background-color: #ff0000;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
}

.toggle input:checked + .slider {
    border: 2px solid #007bff; /* Изменен цвет границы при включенном состоянии */
}

.toggle input:checked + .slider::before {
    background-color: #007bff; /* Изменен цвет фона при включенном состоянии */
}

.toggle .labels {
    position: absolute;
    top: 25%;
    left: 27%;
    transform: translate(-50%, -50%);
    color: #4d4d4d;
    font-size: 12px;
    font-family: sans-serif;
    transition: all 0.4s ease-in-out;
}

.toggle .labels::after,
.toggle .labels::before {
    content: attr(data-off);
    position: absolute;
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

.toggle .labels::before {
    content: attr(data-on);
    opacity: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.toggle input:checked ~ .labels::after {
    opacity: 0;
}

.toggle input:checked ~ .labels::before {
    opacity: 1;
}

.image-container {
    position: relative;
    display: inline-block;
}

.loaded-images {
    position: relative;
    display: inline-block;
}

.small-preview-image {
    max-width: 250px;
    max-height: 250px;
    width: auto;
    margin: 10px 0;
}

.delete-image-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: transparent;
    color: red;
    border: none;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
}

.delete-image-button i {
    font-size: 30px;
}

.content-header {
    padding: 20px 15px;
}

span.select2-selection.select2-selection--single.select2-selection--clearable {
    height: 37px;
}

span.select2-selection.select2-selection--single {
    height: 37px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 37px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 23px;
}

.reorder-widget {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #cccccc;
    width: 250px;
}

.reorder-wrapper {
    padding: 10px 25px;
    position: relative;
    border: 1px solid #cccccc;
    cursor: move;
}

table.dataTable td.reorder, .reorder-item {
    background-color: #eee !important;
    text-indent: -9999px;
    position: relative;
}

table.dataTable td.reorder:before, .reorder-item:before {
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="12" height="12" viewBox="0 0 50 50"><path d="M 0 7.5 L 0 12.5 L 50 12.5 L 50 7.5 Z M 0 22.5 L 0 27.5 L 50 27.5 L 50 22.5 Z M 0 37.5 L 0 42.5 L 50 42.5 L 50 37.5 Z"></path></svg>');
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.reorder-item {
    display: block;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translate(-50%, -50%);
}


.btn.disabled, .btn:disabled {
    background-color: grey !important;
    border-color: grey !important;
    color: #f0f0f0;
}

.errorContainer {
    margin-top: -15px;
}

.form-control.checkbox {
    height: calc(1.5rem + 2px);
    width: calc(1.5rem + 2px);
}

.creative-button {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 24px;
    text-align: center;
    line-height: 20px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    font-family: sans-serif;
    box-sizing: border-box;
    background: linear-gradient(129deg, #03a9f4, #ffeb3b, #f441a5, #ffeb3b, #03a9f4, #ffeb3b);
    background-size: 400%;
    z-index: 1;
}

.creative-button:hover {
    animation: animate 8s linear infinite;
}

@keyframes animate {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 400%;
    }
}

.creative-button:before {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    z-index: -1;
    background: linear-gradient(129deg, #03a9f4, #ffeb3b, #f441a5, #ffeb3b, #03a9f4, #ffeb3b);
    background-size: 400%;
    border-radius: 40px;
    opacity: 0;
    transition: .5s;
}

.creative-button:hover:before {
    filter: blur(20px);
    opacity: 1;
    animation: animate 8s linear infinite;
}

.stepper {
    display: flex;
    padding: 0;
    width: 100%;
    list-style: none;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 0 10px rgb(217, 231, 251, .25);
    overflow: hidden;
}

.stepper::before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    content: "";
    width: calc(100% - 20px);
    background: #e7e7e7;
}

.stepper__item {
    flex: 100%;
    padding: 10px 20px 10px 30px;
    background: white;
    margin: 0 0 0 -20px;
    -webkit-clip-path: polygon(20px 50%, 0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
    color: #1a1e21;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.stepper__item.current {
    background: #d9e7fb;
    color: #383838;
}

.stepper__item.completed {
    background: #3a51b5;
    color: #f0f0f0;
}

.stepper__item.completed:before {
    content: '';
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" x="0px" y="0px" width="100" height="100" viewBox="0 0 24 24"><path d="M 20.292969 5.2929688 L 9 16.585938 L 4.7070312 12.292969 L 3.2929688 13.707031 L 9 19.414062 L 21.707031 6.7070312 L 20.292969 5.2929688 z" ></path></svg>');
    background-size: 24px;
    min-width: 24px;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.stepper__item:first-child {
    -webkit-clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
    padding-left: 35px;
}

.stepper__item:last-child {
    -webkit-clip-path: polygon(20px 50%, 0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.underline {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .stepper {
        flex-wrap: wrap;
    }

    .stepper::before {
        background: unset;
    }

    .stepper__item, .stepper__item:first-child {
        padding-left: 30px;
        -webkit-clip-path: none;
    }
}

.review-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.review-wrapper > div {
    width: 100%;
}

.preview_item {
    width: 400px;
    height: 300px;
    background-color: white;
    position: relative;
}

.preview_item > button, .automated_preview > button {
    position: absolute;
    left: 10px;
    top: 10px;
}

.automated_preview {
    background-color: white;
    position: relative;
    aspect-ratio: 3/2;
    display: flex;
    flex-direction: column;
}

.automated_preview_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.automated_preview_caption {
    background: #3a424a;
    padding: 10px;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.automated_preview_caption_buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
    margin-left: 10px;
}

.automated_preview_title {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.automated_preview_desc {
    font-size: 16px;
    color: white;
    min-height: 50px;
}

.custom-file-label {
    height: auto;
}

.custom-control-label {
    line-height: 24px;
}

.bg-light-blue {
    background: #d9e7fb;
    color: #383838;
}

.list-item {
    display: flex;
    background-color: #d9e7fb;
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    border-bottom: 1px solid #a8b8ce;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    align-items: center;
    font-weight: bold;
}

.list-item:last-child {
    margin-bottom: 0;
}

.hr {
    display: flex;
    margin: 20px 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #b7b7b7;
}

.hr:before, .hr:after {
    content: " ";
    display: block;
    height: 1px;
    margin-top: 1px;
    background-color: #d9d9d9;
    width: 25%;
}

@media (max-width: 768px) {
    .review-wrapper {
        flex-direction: column;
    }

    .review-wrapper > div:last-child {
        order: -1;
    }
}

table.dataTable tbody tr.odd td {
    background-color: #f4f4f4;
}

.content-wrapper-with-menu {
    display: flex;
}

.content-wrapper-with-menu > .wrapped-content {
    flex: 1;
    padding: 0 10px;
}

.content-wrapper-with-menu .content-header {
    padding: 20px 15px 20px 7.5px;
}

.left-menu-wrapper {
    width: 160px;
    background-color: #e5e6ea;
    padding-top: 16px;
}

.left-menu {
    gap: .2rem;
    display: flex;
    flex-wrap: wrap;
    width: 160px;
    top: 10px;
    position: sticky;
    padding: 0 10px;
}

.left-menu > a {
    width: 100%;
    text-align: left;
    color: #343a40;
    display: block;
    padding: .3rem .5rem;
    border-radius: .25rem;
}

.left-menu > a:hover {
    background-color: rgba(0, 0, 0, .1);
}

.left-menu > a.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .12);
}

.left-menu > a > i {
    margin-right: 5px;
}

.sortable-ghost {
    background-color: #fff3d0 !important;
}

.kanban-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: start;
    margin-bottom: 30px;
    user-select: none;
}

.kanban-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, .05);
    width: 270px;
    vertical-align: top;
    white-space: normal;
    border-radius: 12px;
    position: relative;
}

.gap-0 {
    gap: 0;
}

.kanban-group > .reorder-item {
    right: 50px;
    top: 24px;
    left: unset;
    cursor: move;
}

.kanban-group-title {
    font-weight: bold;
    font-size: 18px;
    padding: 0 4px;
    margin-bottom: 0;
    min-height: 27px;
    height: auto;
    line-height: 27px;
}

.kanban-group-delete {
    font-size: 16px;
    color: red;
    cursor: pointer;
    padding: 0 4px;
    border: none;
    background-color: transparent;
    align-self: flex-start;
}

.kanban-group-sortable {
    display: grid;
    gap: 5px;
    list-style: none;
    padding: 5px;
    margin: 0;
    min-height: 40px;
    background-color: rgba(0, 0, 0, .1);
    border-radius: 8px;
}

.kanban-item {
    background-color: white;
    padding: 10px 10px 10px 30px;
    border-radius: 5px;
    display: flex;
    position: relative;
    cursor: move;
}

.table-sm td, .table-sm th {
    padding: .3rem;
}

.status-failed, table .status-failed td {
    background-color: #f8d7da;
}

.status-pending, table .status-pending td {
    background-color: #fff3cd;
}

.status-processing, table .status-processing td {
    background-color: #cce5ff;
}

.status-completed, table .status-completed td {
    background-color: #d4edda;
}

.select2-results__option--selected {
    background-color: #1660a6;
    color: white;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;

    input[type="checkbox"] {
        width: 16px;
    }
}
