body, html {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

* {
    scrollbar-width: thin; /* Уменьшает ширину скроллбара */
    scrollbar-color: #888 #f1f1f1; /* Цвет ползунка и фона */
}

    /* Для браузеров с поддержкой ::-webkit-scrollbar (например, Chrome, Edge, Safari) */
*::-webkit-scrollbar {
    width: 10px; /* Ширина вертикального скроллбара */
    height: 10px; /* Высота горизонтального скроллбара */
}

*::-webkit-scrollbar-track {
    background: #f1f1f1; /* Цвет трека */
}

*::-webkit-scrollbar-thumb {
    background-color: #888; /* Цвет ползунка */
    border-radius: 10px; /* Скругление углов ползунка */
    border: 2px solid #f1f1f1; /* Отступ между ползунком и треком */
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Цвет ползунка при наведении */
}

#app-side-nav-outer-toolbar {
    flex-direction: column;
    display: flex; 
    height: 100%;
    width: 100%;
}

.layout-header {
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    z-index: 1501;
}

.dx-toolbar .dx-toolbar-item.menu-button {
    width: 60px;
    text-align: center;
    padding: 0;
}

.dx-toolbar .dx-toolbar-item.menu-button > .dx-toolbar-item-content .dx-icon {
    color: #1ec3a5;
}


.dx-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 4px;
    background-color: #fff;
    margin: 2px 2px 3px;
}

.dx-card.wide-card {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    border-right: 0;
    border-left: 0;
}

.with-footer > div > div > .dx-scrollable-content {
    height: 100%;
}

.with-footer > div > div > .dx-scrollable-content > .dx-scrollview-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.layout-body {
    background-color: #f2f2f2;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.layout-body .menu-container {
    height: 100%;
    width: 250px;
}

.layout-body .content {
    flex-grow: 1;
    height: 100%;
    line-height: 1.5;
}

.layout-body .content h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.5px;
}

.layout-body .content-block {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}
.layout-body .content {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
}

.layout-body .content-footer {
    display: block;
    color: rgba(0,0,0,.609);
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 20px;
    padding-bottom: 24px;
}

.layout-body .responsive-paddings {
    padding: 20px;
}

.layout-body-hidden {
    visibility: hidden;
}

.flex-gallery {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.flex-gallery_item {
    width: 19%;
    aspect-ratio: 1 / 1;
    background-size: cover;
}


@media screen and (min-width: 600px) {
    .layout-body .content-block {
        margin-left: 40px;
        margin-right: 40px;
    }
}
@media screen and (min-width: 600px) {
    .layout-body .content {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (min-width: 1280px) {
    .layout-body .responsive-paddings {
        padding: 40px;
    }
}

.menu-container .dx-widget {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: Roboto,RobotoFallback,Helvetica,Arial,sans-serif;
    line-height: 24px;
}

.menu-container .dx-treeview {
    white-space: nowrap;
}

.menu-container .dx-treeview .dx-treeview-item {
    padding-left: 0;
    padding-right: 0;
}

.menu-container .dx-treeview .dx-treeview-item .dx-icon {
    width: 60px !important;
    margin: 0 !important;
}

.menu-container .dx-treeview .dx-treeview-node {
    padding: 0 0 !important;
}

.menu-container .dx-treeview .dx-treeview-toggle-item-visibility {
    right: 10px;
    left: auto;
}

.menu-container .dx-treeview .dx-rtl .dx-treeview-toggle-item-visibility {
    left: 10px;
    right: auto;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="1"] {
    font-weight: bold;
    border-bottom: 1px solid #515159;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
    font-weight: normal;
    padding: 0 40px;
}
.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] .dx-treeview-item-content .dx-icon-isblank {
    text-align: end;
    width: 40px !important;
}

.menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node.dx-state-selected:not(.dx-state-focused) > .dx-treeview-item {
    background: transparent;
}

.menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node.dx-state-selected > .dx-treeview-item * {
    /*color: #FF5722;*/
    color: #1ec3a5;
}

.menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node:not(.dx-state-focused) > .dx-treeview-item.dx-state-hover {
    background-color: #3F3F4B;
}

/*.layout-body .content .container-fluid{
    margin-bottom:1.5rem !important;
}*/
.layout-body .content .container-fluid{
    margin-bottom:0.5rem !important;
    margin-top:0 !important;
}
.layout-body .content .container-fluid .title-page{
    font-size:20px;
    align-self:center;
    font-weight:400;
}
.layout-body .content .container-fluid .button-end{
    text-align:end;
}

.route-header-num.div3 {
    margin-left: 30px;
    margin-top: 15px;
    margin-bottom: 0px;
}

.checkb {
    align-self: center;
}

@keyframes fa-spin {
    0% {
        margin-left: -50%;
    }
    /*
    25% {
        margin-left: -50%;
    }*/
    50% {
        margin-left: 50%;
    }
    /* 75% {
        margin-left: -50%;
    }*/
    100% {
        margin-left: -50%;
    }
}

@keyframes image-left {
    0% {
        height: 50px;
        padding-right: 0;
        transform: rotate(0);
        margin-bottom: 0;
    }

    25% {
        height: 50px;
        padding-right: 0;
        transform: rotate(0);
        margin-bottom: 0;
    }

    50% {
        height: 50px;
        padding-right: 0;
        transform: rotate(0);
        margin-bottom: 0;
    }

    60% {
        height: 45px;
        padding-right: 10px;
        transform: rotate(-20deg);
        margin-bottom: 10px;
    }

    75% {
        height: 45px;
        padding-right: 10px;
        transform: rotate(-20deg);
        margin-bottom: 10px;
    }

    90% {
        height: 45px;
        padding-right: 10px;
        transform: rotate(-20deg);
        margin-bottom: 10px;
    }

    100% {
        height: 50px;
        transform: rotate(0);
        margin-bottom: 0;
    }
}

@keyframes image-right {
    0% {
        height: 50px;
        transform: rotate(0);
    }

    25% {
        height: 50px;
        transform: rotate(0);
    }

    50% {
        height: 50px;
        transform: rotate(0);
    }

    60% {
        height: 50px;
        transform: rotate(-20deg);
    }

    75% {
        height: 50px;
        transform: rotate(-20deg);
    }

    90% {
        height: 50px;
        transform: rotate(-20deg);
    }

    100% {
        height: 50px;
        transform: rotate(0);
    }
}

.image-right {
    animation: image-right 2s infinite linear;
    animation-name: image-right;
    animation-duration: 8s;
    animation-fill-mode: none;
    animation-timing-function: linear;
    animation-timeline: auto;
    animation-range-start: normal;
    animation-range-end: normal;
}

.image-left {
    animation: image-left 2s infinite linear;
    animation-name: image-left;
    animation-duration: 8s;
    animation-fill-mode: none;
    animation-timing-function: linear;
    animation-timeline: auto;
    animation-range-start: normal;
    animation-range-end: normal;
}

.pi-spin {
    animation: fa-spin 2s infinite linear;
    animation-duration: 8s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
    animation-name: fa-spin;
    animation-timeline: auto;
    animation-range-start: normal;
    animation-range-end: normal;
}

.box-hidden-id{
    height:0 !important;
    padding: 0 !important;
    margin: 0 !important;
}




#loaderSave {
    border: 16px solid #4f4f4f;
    border-radius: 50%;
    border-top: 16px solid #1ec3a5;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.area-task-label .dx-field-item-label-location-top {
    padding-bottom: 10px;
    font-size: 20px;
    text-align-last: center;
    border-bottom: 2px solid #4F4F4F;
    margin-bottom: 10px;
    font-weight: 500;
}
.area-executortask-label {
    font-size: 20px;
    text-align-last: center;
    font-weight: 500;
}
.area-task-button .dx-box-item-content {
    align-self: end;
}
.InputDisplayNone{
    display:none;
}



.div3 {
    margin-bottom: 15px;
    font-size: 30px;
}

.div12.titletask {
    font-size: 15px;
    color: #807c7c;
}

.div12.titletask p {
    font-weight: bold;
    font-size: 30px;
    color: #000;
}

.nav-route {
    padding: 10px 0px 10px 10px;
    height: 100px;
    border-radius: 7px 7px 0px 0px;
}

.btn-item {
    margin-left: 15px;
}

.btn.btn-sm.btn-success {
    border-radius: 6px;
    padding: 7px 30px;
    color: rgb(255, 255, 255) !important;
    font-weight: 600;
}

.btn-back-map {
    background: rgb(238, 238, 238);
    display: -webkit-inline-box;
    margin: 25px 0 25px 15px;
    border: 1px solid rgb(200, 192, 192);
    border-radius: 6px;
    padding: 17px;
    float: right;
    right: 20px;
    position: absolute;
}

#prevEvent {
    float: left;
    display: inherit;
}

.btn-back-map button {
    margin-left: 10px;
    padding: 7px 20px;
    font-weight: bold;
    background: #ff0078;
}

.choosing-reason-map {
    display: flex;
    margin: 0px 0px 0 15px;
}

.btn-map-nav {
    border-radius: 6px;
    background-color: #1ec3a5;
    padding: 10px 30px;
    color: #fff !important;
    margin-left: 5px;
}

.btn-map-nav--delete {
    background-color: #d12f24;
    border-radius: 6px;
    padding: 10px 30px;
    color: #fff !important;
    margin-left: 5px;
}

.btn-map-nav:hover {
    background-color: #2a7e6e;
    transition: 1s;
}

.datetask {
    float: right;
    margin-top: -80px;
    font-size: 17px;
    font-weight: bold;
}

.div14 {
    font-size: 17px;
}

.div11 button {
    border-radius: 12px;
    background-color: #1ec3a5;
    overflow: hidden;
    padding: 15px 70px;
    color: #fff;
    font-weight: bold;
    margin-top: 15px;
}

.div11 button:hover {
    background-color: rgb(42, 121, 106);
    transition: 1s;
}

.btnback button {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    padding: 5px 15px;
    color: #fff;
    font-weight: bold;
    margin-top: 25px;
    float: right;
    background: linear-gradient(0.25turn, #1ec3a5, #3c73f6);
}

.btnback-up button {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    padding: 5px 15px;
    color: #fff;
    font-weight: bold;
    margin-top: -52px;
    margin-right: 20px;
    float: right;
    background: linear-gradient(0.25turn, #1ec3a5, #3c73f6);
}

.mapsize{
    height: 100%;
    width: 720px;
}

.btn-add-global button {
    color: #9d9b9b;
    font-size: 100px;
    margin-top: -50px;
    float: right;
    background: unset;
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-add-global button:hover {
    transform: scale(1.1);
    background: unset;
    color: #b7b5b5;
}

.btn-add-global button:active {
    transform: scale(1);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
}

.add-plus-btn {
    margin: 0 25% 0 25%;
    margin-top: 0px;
    width: 50% !important;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 10px;
    right: 62px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    #scrollToTopBtn.show {
        display: block; /* Показываем кнопку */
    }

/* Стили для очень маленьких устройств */
@media (max-width: 480px) {
    .layout-body .content h2 {
        font-size: 22px;
    }

    .div3 {
        font-size: 22px;
    }

    .div12.titletask p {
        font-size: 22px;
    }

    .div14 {
        font-size: 14px;
    }

    .datetask {
        margin-top: -78px;
        font-size: 13px;
        font-weight: bold;
    }

    .btnback button {
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        padding: 5% 20%;
        width: 100%;
    }

    .collapse:not(.show) {
        display: flex !important;
    }

    .nav-route {
        padding: 10px 0px 10px 10px;
        height: 280px;
        border-radius: 7px;
        width: 100%;
        position: relative !important;
    }

    #navbarNav {
        margin-top: -65px;
    }

    .btn-item {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-left: 0px;
        margin-top: -145px;
        width: 95%;
    }

    .btn-map-nav {
        border-radius: 6px;
        background-color: rgb(30, 195, 165);
        padding: 10px 30px;
        color: rgb(255, 255, 255) !important;
        margin-left: 5px;
        width: 100%;
        display: block;
        text-align: center;
        font-weight: bold;
    }

    .choosing-reason-map {
        width: 100%;
        left: 0px;
        position: absolute;
        margin-top: -80px;
    }

    .btn.btn-sm.btn-success {
        padding: 15px 30px;
        width: 91%;
        position: absolute
    }

    #prevEvent {
        float: left;
        display: inline-grid;
    }

    .btn-back-map button {
        margin-left: 0px;
        margin-top: 60px;
        width: 89%;
        position: absolute
    }

    .btn-back-map {
        background: rgb(238, 238, 238);
        display: -webkit-inline-box;
        margin: 235px 0 25px 10px;
        border: 1px solid rgb(213, 200, 200);
        border-radius: 6px;
        padding: 17px;
        float: right;
        right: 1%;
        position: absolute;
        width: 92%;
        left: 1%;
        height: 130px;
    }

    .mapsize {
        width: 100% !important;
        height: 300px !important;
        margin-top: 15px !important;
        border-radius: 7px !important;
        overflow: hidden !important;
    }

    .map {
        height: 300px !important;
    }

    .menu-admin-mobile {
        background: #fff;
        z-index: 0;
        border-radius: 0px 0px 0px 20px;
        visibility: hidden;
    }

    .btnback-up {
        display: none;
    }
}