:root {
    --body-bg-color: #f5f5f5;
    --text-color: #333;
    --slider-active-text-color: #1a1818;
    --app-bg-color: #e7e7e7;
    --logo-text-color: #db0000;
    --border-color: #b9b9b9af;
    --windows-bg-color: #ffffff;
    --button-selected: #333;
}

@keyframes active {
    0% {}

    100% {
        transform: translateY(0px) scale(1.1);
    }
}

a {
    color: var(--slider-active-text-color);
    text-decoration: none;
    font-size: 5vw;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.accordion-item,
.accordion-header,
.accordion-body,
.accordion-button,
.accordion-button:not(.collapsed) {
    background: none;
    border: none;
    margin: 0px;
    padding: 0px;
    color: var(--text-color);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;

    ::after {
        text-decoration: none;
        background: none;
        display: none;
        border-radius: 12px;
    }

    ::before {
        text-decoration: none;
        background: none;
        display: none;
        border-radius: 12px;
    }
}

.accordion-button {
    background: none;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
    color: var(--windows-bg-color);
    border-radius: 12px;
    /* background-color: var(--slider-active-text-color); */
}

.accordion-body:has(.accordion-button:not(.collapsed)) {
    background-color: var(--slider-active-text-color);
    color: var(--windows-bg-color);
    border-radius: 12px;
}

.accordion-header:has(.accordion-button:not(.collapsed)) {
    background-color: var(--slider-active-text-color);
    color: var(--windows-bg-color);
    border-radius: 12px;
}

.accordion-body {
    width: 14vw;
    max-width: 14vw;
    border-radius: 12px;
}

.compact {
    font-size: 10px;
}

.accordion-header {
    width: 22.5vw;
    max-width: 22.5vw;
}

body {
    padding: 0px;
    margin: 0px;
    background-color: var(--app-bg-color);
    color: var(--text-color);
}

header,
footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 10px;
    height: 60px;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 98vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: linear-gradient(to bottom right, #f0f0f0, #ffffff);
}

.swiper-container {
    display: flex;
    width: 90vw;
    height: 100px;
    max-width: 90vw;
}

.slide-prev,
.slide-next {
    width: 10vw;
    font-size: 26px;
    display: flex;
    align-content: center;
    top: 22px;
    text-align: left;
    position: absolute;
    cursor: pointer;
    z-index: 2;
    color: var(--slider-active-text-color);
}

.slide-next {
    right: 0px;
    justify-content: right;
    text-align: right;
}

.swiper-wrapper {
    width: 85vw;
    max-width: 85vw;
    margin-top: 20px;
}

.swiper-slide-prev {
    color: var(--text-color);
}

.swiper-slide-next {
    color: var(--text-color);
}

.swiper-slide {
    transform: scale(0.9);
    justify-content: center;
    text-align: center;
    font-size: 20px;
    display: flex;
    font-weight: lighter;
}

/* .have {
    font-weight: normal;
} */

.swiper-slide-active {
    animation: active 0.3s both 0.3s;
    font-weight: bold;
    /* transform: scale(1.2); */
    color: var(--slider-active-text-color);
}

#container {
    height: 350px;
    margin-top: 0%;
    padding: 0px;
}

.activ_block {
    background-color: var(--app-bg-color);
    padding: 8px;
    display: flex;
    /* justify-content: center; */
    flex-direction: column;
    min-height: 90vh;
    width: 100%;
    max-width: 100vw;
    border-top: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 15px;
}

.activ_windows {
    background-color: var(--app-bg-color);
    /* padding: 8px; */
    /* height: 100%; */
    z-index: 2;
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo_img {
    display: flex;
    gap: 5px;
}

.logo_img img {
    min-width: 80px;
    min-height: 35px;
    height: 60px;
    width: 220px;
}

.logo_text p {
    font-size: 14px;
    color: var(--logo-text-color);
}

.helper {
    height: 40px;
    display: flex;
    gap: 10px;
    padding: 0px;
    align-items: center;
    align-self: center;
    align-content: center;

}

.helper button {
    display: flex;
    justify-content: space-around;
    width: 150px;
    height: 30px;
    /* min-width: 100px; */
    padding: 3px 5px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--slider-active-text-color);
    color: var(--windows-bg-color);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.title-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    perspective: 1000px;
}

.error {
    color: red;
}

.state {
    text-align: center;
    margin: 30px 0;
}

.state button {
    padding: 8px 13px;
    width: 85vw;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--slider-active-text-color);
    color: var(--windows-bg-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.dynamic,
.papers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 15px;

    button {
        padding: 5px 10px;
        width: 50vw;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        background-color: var(--slider-active-text-color);
        color: var(--windows-bg-color);
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
    }
}

.logout {
    display: none;
}

.logout-button {
    padding: 5px 10px;
    width: 60px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--slider-active-text-color);
    color: var(--windows-bg-color);
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

.detail-window {
    justify-self: center;
    justify-content: center;
    padding: 5px 10px;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--windows-bg-color);
    color: var(--text-color);
    display: none;
    flex-direction: column;
    text-align: center;
    margin-top: 30px;
}

.percent {
    text-align: center;
    justify-content: center;
    font-size: 7vw;
    display: flex;
    width: 100%;
}

.close {
    position: absolute;
    left: 75vw;
    cursor: pointer;
    font-size: 5vw;
    display: flex;
    text-align: end;
    justify-content: end;
    justify-self: end;
    color: var(--slider-active-text-color) !important;
}

.order-title {
    text-align: center;
    font-size: 6vw;
}

.detail {
    display: none;
    justify-content: center;
    cursor: pointer;

    .detail-img {
        width: 3vw;
        color: var(--text-color);
    }
}

.detail-on {
    display: none;
    flex-direction: column;
    justify-content: center;

    p {
        text-align: left;
        padding: 15px 15px;
        font-size: 14px;
    }
}

table {
    border: solid 1px var(--text-color);
    border-radius: 12px;
    margin: 15px;
    width: 90%;
}

tr {
    border: solid 1px var(--text-color);
    border-radius: 12px;
}

td {
    border: solid 1px var(--text-color);
    border-radius: 12px;
    font-size: 18px;
    padding: 5px;
}

th {
    border: solid 1px var(--text-color);
    border-radius: 12px;
    font-size: 20px;
    padding: 5px;
}

.tr-f {
    color: green;
}

.tr-s {
    color: red;
}

.highlight {
    color: var(--logo-text-color);
}

.obrat-svaiz,
.zaiavka,
.autoriz {
    z-index: 2;
    top: 20vh;
    justify-self: center;
    justify-content: center;
    justify-items: center;
    align-self: center;
    align-content: center;
    align-items: center;
    padding: 15px 10px;
    width: 80vw;
    left: 10%;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--windows-bg-color);
    color: var(--text-color);
    display: none;
    flex-direction: column;
    text-align: center;
    position: absolute;
    margin-top: 50px;

    p {
        font-size: 3vw;
        text-align: center;
        font-weight: bold;
    }

    .noPassLog {
        font-size: 3vw;
        text-align: center;
        font-weight: normal;
        display: none;
    }

    input,
    textarea {
        border-color: var(--text-color);
        border-radius: 12px;
        padding: 6px;
        width: 80%;
        margin: 16px 0px;
        border: 2px solid var(--border-color);
    }

    .remember-div {
        display: flex;
    }

    .remember {
        /* display: none; */
        width: 25px;
        margin: 8px;
    }

    .buttons {
        display: flex;
        text-align: center;
        width: 80%;
        margin-left: 10%;
        justify-content: space-between;
        margin-top: 16px;

        .send {
            padding: 5px 10px;
            width: 40%;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background-color: var(--slider-active-text-color);
            color: var(--windows-bg-color);
            cursor: pointer;
            font-size: 12px;
            font-weight: bold;
        }

        .phone {
            padding: 5px 10px;
            width: 40%;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background-color: var(--slider-active-text-color);
            color: var(--windows-bg-color);
            cursor: pointer;
            font-size: 12px;
            font-weight: bold;

            img {
                width: 2vw;
            }
        }
    }

    .button {
        display: flex;
        text-align: center;
        width: 100%;
        justify-content: center;
        margin: 16px 0px;

        .send {
            padding: 5px 10px;
            width: 50%;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background-color: var(--slider-active-text-color);
            color: var(--windows-bg-color);
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
        }
    }
}

.autoriz {
    top: 0px;
    left: 0px;
    z-index: 1;
    /* top: 20vh; */
    display: flex;
    position: relative;
    margin: 20px 0px;
}

.graf {
    /* height: 112vh; */
    /* width: 90vw; */
    height: 100%;
    margin-top: 40px;
    justify-self: center;
    justify-content: center;
    text-align: center;
}

.stat-window {
    z-index: 1;
    top: 20vh;
    justify-self: center;
    justify-content: center;
    text-align: center;
    overflow: auto;
    padding: 5px 10px;
    /* height: 127vh; */
    height: 100%;
    width: 90vw;
    left: 5vw;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--windows-bg-color);
    color: var(--text-color);
    display: none;
    flex-direction: column;
    position: absolute;

    .close-stat {
        margin-top: 0px;
        cursor: pointer;
        height: 20px;
        font-size: 24px;
        display: flex;
        text-align: center;
        justify-content: center;
        justify-self: center;
        /* align-items: start; */
        /* align-self: flex-start; */
        /* align-content: start; */
        color: var(--slider-active-text-color) !important;
    }
}

.window-order {
    margin-top: 50px;
    display: flex;
    justify-self: center;
    justify-content: center;
    justify-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--windows-bg-color);
    width: 100%;
    color: var(--text-color);

    h3 {
        color: var(--slider-active-text-color);
    }

    .window-order-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px 10px;

        .sub-alt-header {
            color: var(--slider-active-text-color);
        }

        p {
            font-size: 3vw;
        }

    }
}

.to-back {
    font-size: 12vw;
}

.table-info {
    border: none;
    border-radius: 12px;
    /* margin: 15px; */
    width: 90vw;
    max-width: 90vw;
    background: none;
    color: var(--text-color);
    border-collapse: separate;
    border-spacing: 5px 10px;
    /* display: flex; */
    justify-content: center;
    justify-self: center;
    text-align: center;
    margin: auto 0px;

    .complete {
        background-color: var(--slider-active-text-color);
        color: var(--text-color);
    }


    tr {
        border: none;
        border-radius: 12px;
        background-color: var(--windows-bg-color);
    }

    td {
        border: none;
        border-radius: 12px;
        font-size: 18px;
        padding: 5px;
        text-align: center;
    }

    .name {
        border-radius: 12px;
        width: 65%;
        max-width: 65%;
    }

    .data {
        border-radius: 12px;
        width: 15%;
        max-width: 15%;
    }

    .number {
        border-radius: 12px;
        width: 15%;
        max-width: 15%;
    }

    th {
        border: none;
        border-radius: 12px;
        font-size: 20px;
        padding: 10px;
    }
}

.plane-block {
    height: 100%;
    min-height: 80vh;
}

.header {
    /* margin: auto 0px; */
    display: flex;
    justify-self: flex-start;
}

.table-plane {
    border: none;
    border-radius: 12px;
    /* margin: 15px; */
    width: 95%;
    /* max-width: 80vw; */
    background: none;
    color: var(--text-color);
    border-collapse: separate;
    border-spacing: 5px 10px;
    display: flex;
    justify-content: center;
    justify-self: center;
    text-align: center;


    /* margin: auto 0px; */


    .complete {
        background-color: var(--slider-active-text-color);
        color: var(--text-color);
    }


    tr {
        width: 20vw;
        max-width: 20vw;
        border: none;
        border-radius: 12px;
        background-color: var(--windows-bg-color);
    }

    td {
        width: 20vw;
        max-width: 20vw;
        border: none;
        border-radius: 12px;
        font-size: 18px;
        padding: 5px;
        text-align: center;
    }

    th {
        width: 20vw;
        max-width: 20vw;
        border: none;
        border-radius: 12px;
        font-size: 20px;
        padding: 5px;
    }
}



@media (width <=780px) {
.graf {
    height: 100%;
	min-height: 356px;
}

.stat-window {
    height: 100%;
min-height: 312px;
    width: 90vw;

    .close-stat {
        font-size: 18px;
    }
}

    .logo_img img {
        min-width: 70px;
        min-height: 35px;
        height: 35px;
        width: 100px;
    }

    .logo_text p {
        font-size: 8px;
    }

    /* .helper button {
        width: 75px;
        font-size: 10px;
    } */
    .swiper-container {
        height: 75px;
    }

    .order-title {
        font-size: 12px;
    }

    .percent,
    .close-stat,
    .close,
    .to-back {
        font-size: 22px;
    }

    .swiper-slide {
        font-size: 16px;
    }

    td {
        font-size: 10px;
    }

    th {
        font-size: 10px;
    }

    .accordion-item,
    .accordion-header,
    .accordion-body,
    .accordion-button,
    .accordion-button:not(.collapsed) {
        font-size: 10px;
    }

    .compact {
        font-size: 8px;
    }

    .table-info {

        /* .name {
            font-size: 12px;
        } */

        td {
            font-size: 8px;
        }

        th {
            font-size: 10px;
        }
    }

    .table-plane {

        /* .name {
            font-size: 12px;
        } */

        td {
            font-size: 8px;
        }

        th {
            font-size: 10px;
        }
    }
}