@font-face {
    font-family: 'InknutAntiquaBlack';
    src: url('../fonts/InknutAntiqua-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


html {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;


    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: grey;
        border-radius: 10px;
        border: 2px solid transparent;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(143.75deg, #FFAE00 37.75%, #F98E00 89.74%);
    }
    ::-webkit-scrollbar-button {
        display: none;
    }
  }

body {
    box-sizing: border-box;
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    font-family: 'Source Sans Pro','Helvetica Neue',Helvetica,Arial,sans-serif;


    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(143.75deg, #FFAE00 37.75%, #F98E00 89.74%);
        border-radius: 10px;
        border: 2px solid transparent;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(143.75deg, #FFAE00 37.75%, #F98E00 89.74%);
    }
    ::-webkit-scrollbar-button {
        display: none;
    }

    overflow-x: hidden;



    background: linear-gradient(143.75deg, #FFAE00 37.75%, #F98E00 89.74%);
    &:has( .body-background-white:not(.hide)) {
        background-color: white;
        background: unset;
    }
    
}

div  { 
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
}


.wrap {  flex-wrap: wrap; }
.column {  flex-direction: column; } 
.full {width: 100%;}

.h1 { height: 30px; }
.h2 { height: 60px; }
.h3 { height: 90px; }

.max1 { flex-grow: 1; }
.max2 { flex-grow: 2; }
.max3 { flex-grow: 3; }

.max1-r { flex: 1 1 0; }
.max2-r { flex: 2 1 0; }
.max3-r { flex: 3 1 0; }




.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}


:root {

    --text-s: 8px;
    --text-m: 12px;
    --text-l: 22px;
    --text-xl: 32px;
}

.main-color { background-color: var(--main-color) }
.second-color { background-color: var(--second-color) }
.third-color { background-color: var(--third-color) }
.fourth-color { background-color: var(--fourth-color) }
.fifth-color { background-color: var(--fifth-color) }
.plus-color { background-color: var(--plus-color) }
.minus-color { background-color: var(--minus-color) }

.text-s { font-size: var(--text-s) }
.text-m { font-size: var(--text-m) }
.text-l { font-size: var(--text-l) }
.text-xl { font-size: var(--text-xl) }



.modal {
    width: 100%;
    height: 100%;
    position: fixed;
    overflow-y: auto;
    z-index: 20;
    flex-direction: column;
    background-color: rgb(128, 128, 128, 0.9);

}


.name-page {
    height: 70px;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #b1adad;
    padding: 1px 20px;
    margin: 10px 0px;

}




/* ===================================BUTTON=================================== */

.button {
    height: 40px;
    width: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: orange;
    border-radius: 10px;
    border: 1px solid transparent;
    color: white;
    cursor: pointer;
    &:hover {
        background-color: #f19c00;
    }
    &:active {
        -webkit-animation: pulse 1s;
        animation: pulse 1s;
        background-color: orange;
    }
    &.disabled {
        background: #97989a;
        pointer-events: none; 
        cursor: default;
    }
    &.delete {
        background-color: #e4827d;
        &:hover {
            background-color: #f1b0ac;
        }
    }
}

/* ----------- ANIMATION для кнопки---------- */
@-webkit-keyframes pulse {
    0% {
        border: 1px solid #b1adad;
    }
}
  
@keyframes pulse {
    0% {
        border: 1px solid #b1adad;
    }
}



/* ===================================INPUT=================================== */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {/*УБИРАЕМ СТРЕЛОЧКИ У input[type=number]*/
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* INPUT

e-input - задаем диву в котором находится input

label - если надо сделать label то указываем этот доп класс у того же дива

указываем style='--label:"nameLabel";' у дива 

если надо чтобы у input всегда был сверху label то не указываем placeholder
если надо чтобы label менял место то указываем placeholder=" "



*/

.e-input {
    width: 100%;
    position: relative;

    input, textarea {
        height: 100%;
        width: 100%;
        font-size: 16px;
        border: 1px solid #b1adad;
        border-radius: 10px;
        background-color: #fff;
        padding: 5px 20px;
        letter-spacing: 1px;

        &:focus-within {
            border-color: #bdbdbd;
            outline: 0;
            box-shadow: 0 0 0 3px rgba(158, 158, 158, 0.25);
        }
    }
    textarea {
        resize: none;
    }
    &.required {
        position: relative;
        &::after {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 10px;
            content: "*";
            color: red;
            font-size: 30px;
        }
    }

    &.err input,
    &.err textarea {
        border-color: #dda4a4;
        box-shadow: 0 0 0 3px rgba(221, 164, 164, 0.25);
    }

    & .info {
        visibility: hidden;
        position: absolute;
        right: 10px;
        & .ico {
            width: var(--ico-size, 32px);
            height: var(--ico-size, 32px);
            display: inline-block; 
            vertical-align: middle;
        }
    }
    &.not-title {
        &::before {
            display: none;
        }
    }

    &.label::before {
        content: var(--label, "");
        color: #65657b;
        left: 15px;
        line-height: 4px;
        pointer-events: none;
        position: absolute;
        padding: 5px;
        border-radius: 10px;
        z-index: 1;
        width: auto;
    }
    &:has(input.important){
        &::after{
            content: '*';
            display: inline-block;
            width: 8px;
            height: 8px;
            color: red; 
            border-radius: 50%;
            position: absolute;
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
        }
    }
    &.important{
        &::after{
            content: '*';
            display: inline-block;
            width: 8px;
            height: 8px;
            color: red; 
            border-radius: 50%;
            position: absolute;
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
        }
    }

    &:has(input:focus, textarea:focus)::before,
    &:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown))::before {
        transform: translateY(-20px) scale(0.75);
        left: unset;
        top: 10px;
        right: 15px;
        background-color: #fff;
    }

    &.not-title {
        width: 100%;
        height: 26px;
        input {
            margin-right: 10px;
            letter-spacing: 0;
            font-size: 14px;
        }
    }
    & .info path {visibility: hidden;}
    &.err .info { visibility: visible;}
    &.err .info .cv { visibility: visible;}
    &.ok .info .cg { visibility: visible;}
    &.ok .info { visibility: visible;}
    &.err .info:hover .tooltip {visibility: visible;}
    & .ico_ok, & .ico_cancel{
        position: absolute;
        display: none;
    }
    &.edite{
        & .ico_cancel{
            display: flex; right: 15px;
        }
        & .ico_ok{
            display: flex; right: 35px;
        }
    }
}



/* ===================================TOOLTIP===================================================== */

.tooltip {
    visibility: hidden;
    display: inline-block;
    background-color: rgba(12, 12, 12, 0.7);
    color: #ffffff;
    text-align: center;
    padding: 5px 5px;
    border-radius: 6px;
    height: min-content;
    position: absolute;
    bottom: 40px;
    right: 0;
    z-index: 100;
    font-size: 12px;
    width: 167px;
}
  
.tooltip p {
    margin-bottom: 6px;
}
  
.tooltip::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 92%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(12, 12, 12, 0.7) transparent transparent transparent;
}

/* ===================================== TABLE ===================================== */


.table {
    width: 100%;
    border: none;
    margin-bottom: 20px;
    border-collapse: separate;
    position: relative;

    &.load::before {  
        content: "";
        display: block;    
        width: 100%;
        height: 100%;    
        position: absolute;
        top: 0;      
        left: 0;   
        background: #F6F7F8;
        z-index: 5;
        opacity: 0.8;
        
    }
}
.table thead th {
    font-weight: bold;
    text-align: left;
    border: none;
    padding: 10px 15px;
    background-color: #EDEDED;
    font-size: 14px;
    border-top: 1px solid #ddd;
}

.table thead th {
    text-align: center; 
    vertical-align: middle; 
    &.toys {
        min-width: 50px;
    }
}

.table thead tr:first-child th:first-child {
    border-top-left-radius: 10px; 
}

.table thead tr:first-child th:last-child {
    border-top-right-radius: 10px; 
}


.table thead tr:nth-child(2) th:first-child,
.table thead tr:nth-child(2) th:last-child {
    border-radius: 0; 
}


.table tr th:first-child, .table tr td:first-child {
    border-left: 1px solid #ddd;
}
.table tr th:last-child, .table tr td:last-child {
    border-right: 1px solid #ddd;
}

.table tbody tr:hover {
    background:  rgba(200, 200, 255, 0.2) !important ;
    transition: background-color 0.3s ease-in-out; 
}

.table tbody td {
    text-align: left;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    vertical-align: top;
}
.table tbody tr:nth-child(even) {
    background: #F8F8F8;
}

.table tbody tr:last-child td {
    border-bottom: 1px solid #ddd;
}
.table tbody tr:last-child td:first-child {
    border-radius: 0 0 10px 10px;
}
.table tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 10px;
}

.table tbody tr.empty {
    height: 80px;
}

.table tbody tr.empty:hover {
    background: none !important;
    transition: none !important;
}





/* ======================================================== clean-btn ================================================================ */

.clean-btn {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    background-image: url("/img/kn/kn_broom.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center;
    cursor: pointer;
    margin: 0 10px;
    border-radius: 5px;
    border: 1px solid #F6F7F8;
    &:hover {
        border: 1px solid #ddd;
    }
    &:active {
        transform: translateY(1px);
        filter: saturate(150%);
    }
}


.pic5 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1900 1400" preserveAspectRatio="none"><path fill="%238c0418" fill-opacity="1" d="M 0 100 C 950 350 1000 0 1900 200 L 1900 1200 Q 950 1400 0 1200 L 0 100 "></path></svg>');
    background-size: 100% 100%;
}

.pic6 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1900 1400" preserveAspectRatio="none"><path fill="%23C60824" fill-opacity="1" d="M 0 100 Q 950 500 1900 150 L 1900 1300 Q 950 1100 0 1300 L 0 100 "></path></svg>');
    background-size: 100% 100%;
}



.hide {display:none;}




            



@keyframes spin {
    from {
        transform: rotate(80deg);
    }
    to {
        transform: rotate(440deg);
    }
}