﻿
@font-face {
    font-family: 'poppins-medium';
    src: url('../font/poppins-medium.ttf') format('truetype');
}

* {
    font-family: "poppins-medium", serif;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-weight: 500;
    font-size: 12px;
    outline: none;
    border: 0;
}

:root {
    --sal-blue: #0f2840;
    --sal-dark-blue: #081929;
    --sal-light-blue: #abdfff;
    --sal-yellow: #f3bc41;
    --sal-gray: #e7e7e7;
    --ab-pink: #f20544;
    --header-height: 60px;
    --aside-width: 270px;
}

.borderBox {
    border: 3px solid #ecf1f6;
    border-radius: 10px;
    padding: 15px;
}
/*#region Body*/
body {
    overflow-x: hidden;
}

    body::-webkit-scrollbar,
    main::-webkit-scrollbar {
        width: 5px;
    }

    body::-webkit-scrollbar-thumb,
    main::-webkit-scrollbar-thumb {
        background-color: #bdbdbd;
        border-radius: 6px;
    }

    body::-webkit-scrollbar-track,
    main::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 20px;
        width: 5px;
    }
/*#endregion*/

/*#region Header*/
#NavButton {
    cursor: pointer;
    transition: 300ms;
    margin-right: 15px;
    font-size: 20px;
    padding: 8px;
    border-radius: 5px;
    background: var(--sal-blue);
    color: white;
}

    #NavButton:hover {
        background: white;
        color: var(--jet-blue);
    }

header {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--sal-dark-blue);
    height: 60px;
    width: 100vw;
    box-shadow: 0px -20px 40px 5px #414141d1;
}

    header > a {
        color: #fff;
    }

    header > div > a {
        display: flex;
    }

    header > div:first-of-type {
        display: flex;
        align-items: center;
    }

        header > div:first-of-type > a > img {
            height: 33px;
        }
/*#endregion */

/*#region Aside*/
aside {
    position: fixed;
    z-index: 98;
    overflow: hidden;
    width: var(--aside-width);
    height: calc(100vh - var(--header-height));
    top: var(--header-height);
    color: white;
    background: var(--sal-dark-blue);
    transition: 400ms;
    overflow-y: auto;
}

    aside::-webkit-scrollbar {
        width: 5px;
    }

    aside::-webkit-scrollbar-thumb {
        background-color: var(--sal-yellow);
    }

    aside a span i,
    aside a i:first-child {
        margin-right: 8px;
        width: 16px;
        height: 16px;
    }

    aside ul {
        display: flex;
        flex-direction: column;
        padding: 0;
    }



    aside li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 20px;
        color: white;
        white-space: nowrap;
        transition: 200ms;
    }

        aside li > a:hover {
            background: var(--sal-gray)!important;
            color: black !important;
            padding-left: 30px;
        }

    aside li .active {
        background: rgba(31, 176, 255, .1);
    }

    aside nav .menu-open > a {
        background: rgba(31, 176, 255, .1);
    }

    aside li > a > i {
        transition: transform 300ms;
        font-size: 11px;
    }

    aside > nav > ul > li > ul > li > a {
        padding-left: 35px;
    }

        aside > nav > ul > li > ul > li > a:hover {
            padding-left: 45px;
        }

    aside > nav > ul > li > ul,
    aside > nav > ul > li > ul > li > ul,
    aside > nav > ul > li > ul > li > ul > li > ul {
        display: none;
    }

        aside > nav > ul > li > ul > li > ul > li > a {
            display: block;
            padding-left: 55px;
        }

            aside > nav > ul > li > ul > li > ul > li > a:hover {
                padding-left: 65px;
            }

    aside > nav > ul > li:hover {
        cursor: pointer;
    }
/*
.active-self {
    background: var(--jet-gray);
    font-weight: bold;
}

    .active-self > a {
        color: black !important;
    }

.active-parent > ul {
    display: block;
}

.active-parent > a > i {
    transform: rotate(180deg);
}

.active-child > a {
    background: var(--jet-gray);
    color: black !important;
    font-weight: bold;
}
*/
.notOpenable > li > a {
    justify-content: start;
}

aside > nav > ul > li > a > span > img {
    filter: brightness(0)invert(1);
    width: 20px;
}

aside > nav > ul > li > a:hover > span > img {
    filter: brightness(0);
}

#ZeroKmOffer > a {
    justify-content: space-between;
}
/*#endregion */

/*#region Title*/
#Title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
    height: 40px;
    align-items: center;
}

    #Title > a {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 35px;
        height: 35px;
        background: var(--sal-yellow);
        border-radius: 10px;
        color: #fff;
    }

    #Title > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: var(--sal-dark-blue);
        border-radius: 10px;
        height: 35px;
        s
    }

        #Title > div > h1 {
            text-align: start;
            color: white;
            padding: 0 25px;
            font-weight: 400;
        }

        #Title > div > span {
            color: white;
            padding: 0 25px;
            font-size: 10px;
        }

            #Title > div > span > b {
                color: var(--sal-yellow);
            }

            #Title > div > span > a {
                cursor: pointer;
                color: white;
                font-size: 10px;
            }

                #Title > div > span > a:hover {
                    color: var(--sal-yellow);
                }
/*#endregion*/

/*#region Main*/
main {
    margin-left: var(--aside-width);
    transition: 400ms;
    width: calc(100vw - var(--aside-width));
    padding: 20px 20px 0 20px;
    min-height: 100vh;
}

/*#endregion*/

/*#region Checkboxes*/

input[type="checkbox"] {
    --primary-color: var(--sal-blue);
    --secondary-color: #fff;
    --primary-hover-color: var(--sal-blue);
    --checkbox-diameter: 16px;
    --checkbox-border-radius: 5px;
    --checkbox-border-color: #d9d9d9;
    --checkbox-border-width: 1px;
    --checkbox-border-style: solid;
    --checkmark-size: 0.7;
}

    input[type="checkbox"],
    input[type="checkbox"] *,
    input[type="checkbox"] *::before,
    input[type="checkbox"] *::after {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

input[type="checkbox"] {
    max-width: 15px;
    min-width: 15px;
    min-height: 15px;
    max-height: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--checkbox-diameter);
    height: var(--checkbox-diameter);
    border-radius: var(--checkbox-border-radius);
    background: var(--secondary-color);
    border: var(--checkbox-border-width) var(--checkbox-border-style) var(--checkbox-border-color);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

    input[type="checkbox"]::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        -webkit-box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5) var(--primary-color);
        box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5) var(--primary-color);
        border-radius: inherit;
        opacity: 0;
        -webkit-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
        -o-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
        transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
    }

    input[type="checkbox"]::before {
        top: 40%;
        left: 50%;
        content: "";
        position: absolute;
        width: 4px;
        height: 7px;
        border-right: 2px solid var(--secondary-color);
        border-bottom: 2px solid var(--secondary-color);
        -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(0);
        -ms-transform: translate(-50%, -50%) rotate(45deg) scale(0);
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
        opacity: 0;
        -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;
        -o-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;
        transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;
    }

    input[type="checkbox"]:hover {
        border-color: var(--primary-color);
    }

    input[type="checkbox"]:checked {
        background: var(--primary-color);
        border-color: transparent;
    }

        input[type="checkbox"]:checked::before {
            opacity: 1;
            -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
            -ms-transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
            transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
            -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
            -o-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
            transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
        }

    input[type="checkbox"]:active:not(:checked)::after {
        -webkit-transition: none;
        -o-transition: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        transition: none;
        opacity: 1;
    }
/*#endregion*/

/*#region Loading*/
.darkMode #SpinnerContainer {
    background: #0f0c1c;
}

#SpinnerContainer {
    position: fixed;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightMode #SpinnerContainer {
    background: #00000069;
}

#SpinnerContainer > div {
    width: 80px;
    height: 80px;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: var(--sal-gray);
    animation: tri-spinner 1s infinite linear;
}

    #SpinnerContainer > div::before, #SpinnerContainer > div::after {
        content: "";
        grid-area: 1/1;
        margin: 2px;
        border: inherit;
        border-radius: 50%;
        animation: tri-spinner 2s infinite;
    }

    #SpinnerContainer > div::after {
        margin: 8px;
        animation-duration: 3s;
    }

@keyframes tri-spinner {
    100% {
        transform: rotate(1turn);
    }
}
/*#endregion*/



/*#region Form*/
:is(input,select,textarea):not(input[type="checkbox"], [type="submit"]) {
    width: 100%;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #0f284070;
}

:is(.salBtn,.salBtnYellow,.salBtnGray, .salBtnGreen, .salBtnRed) {
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 0 !important;
    font-size: 10px;
}

    :is(.salBtn,.salBtnYellow,.salBtnGray, .salBtnGreen, .salBtnRed) i {
        font-size: 9px;
    }

.salBtnIconAdd i {
    padding: 5px;
    border-radius: 20px;
    font-size: 9px;
    transition: 300ms;
    color: #fff;
    background: #4d9d30;
    border: 1px solid #4d9d30;
}

    .salBtnIconAdd i:hover {
        background: none;
        color: #4d9d30;
    }

.salBtnIconUpdate i {
    padding: 5px;
    border-radius: 20px;
    font-size: 9px;
    transition: 300ms;
    color: #fff;
    background: var(--sal-blue);
    border: 1px solid var(--sal-blue);
}

    .salBtnIconUpdate i:hover {
        background: none;
        color: var(--sal-blue);
    }

.salBtnIconDelete i {
    padding: 5px;
    border-radius: 20px;
    font-size: 9px;
    transition: 300ms;
    color: #fff;
    background: red;
    border: 1px solid red;
}

    .salBtnIconDelete i:hover {
        background: none;
        color: red;
    }

.salBtn {
    color: #fff;
    background: var(--sal-blue);
}

.salBtnYellow {
    background: var(--sal-yellow);
    color: #fff;
}

.salBtnGray {
    background: var(--sal-gray);
    color: var(--sal-blue);
}

.salBtnGreen {
    color: #fff;
    background: #4d9d30;
}

.salBtnRed {
    color: #fff;
    background: red;
}
/*#endregion */

/*#region ck-editor*/
.ck.ck-editor__main > .ck-editor__editable {
    height: 150px;
}

/*#endregion */

/*#region Popup*/
.popup {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

    .popup .formContext {
        background: transparent;
    }

    .popup > div {
        margin: auto;
        max-width: 80vw;
        max-height: 80vh;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: max-content;
        background: #fff;
        border-radius: 10px;
        gap: 4px;
        position: relative;
        overflow: hidden;
        overflow-y: auto;
    }

.popup-delete > div > span {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FDE9ED;
    color: #E82646;
    font-size: 25px;
}

.popup-delete > div > h2 {
    font-size: 20px;
}

.popup-delete > div > p {
    font-size: 15px;
    margin: 4px 20px 0 20px;
}

.popup-delete > div > span > i.fa-exclamation {
    color: #E82646;
    font-size: 37px !important;
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
}

.popup-delete > div button {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

.popup-delete .confirmDelete {
    background-color: red;
    transition: 400ms;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    width: 70px;
    font-size: 13px;
    height: 30px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-delete .cancelDelete {
    background-color: var(--sal-blue);
    transition: 400ms;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    width: 70px;
    font-size: 13px;
    height: 30px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

}

.popup-detail > div > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 5px;
    padding-bottom: 10px;
}

    .popup-detail > div > span > p {
        font-size: 18px;
        font-weight: 500;
        text-align: center;
    }

.btnGroup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.popup-detail i {
    cursor: pointer;
}

.popup-detail > div > span > i {
    width: 16px;
    height: 16px;
    border-radius: var(--border-radius-round);
    background-color: var(--text-gray-color);
    color: var(--dark-white);
    margin: 0;
    padding: 0;
    background-image: none;
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: center;
    transition: 200ms;
    font-size: 10px;
}

    .popup-detail > div > span > i:hover {
        background-color: var(--red-dark);
        transition: 300ms;
    }

.popup-detail > div > div {
    width: 100%;
}

@keyframes slideDown {
    from {
        transform: translateY(-10%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-10%);
        opacity: 0;
    }
}

.popup {
    display: none;
}

    .popup.active {
        display: flex !important;
    }

        .popup.active > div {
            animation: slideDown 0.3s ease-out forwards;
        }

            .popup.active > div.closing {
                animation: slideUp 0.3s ease-out forwards;
            }

            .popup.active > div > span {
                color: var(--sal-blue);
                font-weight: 500;
                font-size: 22px;
                margin-bottom: 10px;
            }

                .popup.active > div > span i {
                    position: absolute;
                    cursor: pointer;
                    font-size: 17px;
                    top: 10px;
                    right: 8px;
                }

            .popup.active > div > :is(form,div) {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }

/*#endregion*/
/*#region DataTable*/

.filters {
    background: #fff;
}

table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
    border: 0 !important;
}

.dataTables_wrapper .dataTables_length select, .dataTables_wrapper .dataTables_filter input {
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #0f284070;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    margin-bottom: 10px;
}

div.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 3px 0 3px 6px;
}

table.dataTable .odd {
    background-color: #f9f9f9;
}

.dataTable thead {
    background: var(--sal-blue);
    color: #fff;
}

table.dataTable.no-footer {
    border: 0 !important;
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid var(--sal-blue);
    color: var(--sal-blue) !important;
    border-radius: 5px;
    padding: 4px 10px;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        border: 1px solid var(--sal-blue);
        transition: 200ms;
        color: #fff !important;
        background: var(--sal-blue);
    }

.tableUpdate {
    cursor: pointer;
    margin: 0 10px;
    font-size: 10px;
}

    .tableUpdate i {
        font-size: 8px;
        margin-right: 3px;
    }

.tableDelete {
    cursor: pointer;
    font-size: 10px;
    margin: 0 10px;
}

    .tableDelete i {
        font-size: 8px;
        margin-right: 3px;
    }

.tableDefault {
    color: var(--sal-blue);
    text-decoration: underline;
    cursor: pointer;
    margin: 0 10px;
}

    .tableDefault i {
        padding: 3px 4px 3px 4px;
        border-radius: 20px;
        font-size: 9px;
        transition: 300ms;
        color: #fff;
        background: #4d9d30;
        border: 1px solid #4d9d30;
    }

        .tableDefault i:hover {
            background: none;
            color: #4d9d30;
        }


.tablePassive {
    color: red;
    text-decoration: underline;
    margin: 0 10px;
}

.tableActive {
    color: green;
    text-decoration: underline;
    margin: 0 10px;
}
/*#endregion */

/*#region Table*/
.table {
    width: 100%;
    border-collapse: collapse;
}

    .table > thead {
        background-color: var(--sal-blue);
        color: white;
        height: 40px;
    }

        .table > thead > tr th {
            border: 1px solid #fff;
        }

            .table > thead > tr th:last-of-type {
                border-right: none;
            }

            .table > thead > tr th:first-of-type {
                border-left: 1px solid #0f2840;
            }

    .table > tbody > tr {
        height: 35px;
    }

        .table > tbody > tr td {
            border: 1px solid #0f284070;
            padding-left: 5px;
        }
/*#endregion*/
/*#region Alert*/
#Alert {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 100;
    top: -100px; /* Start position above the screen */
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0; /* Initially hidden */
    animation: slideIn 0.5s ease forwards, slideOut 0.5s ease 2.5s forwards;
}

#AlertJS {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 100;
    top: -100px; /* Start position above the screen */
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0; /* Initially hidden */
    transition: top 0.5s ease, opacity 0.5s ease; /* Smooth transition for sliding and fading */
}


    #Alert > i,
    #AlertJS > i {
        font-size: 15px;
    }

.failed {
    background: #f6cfce !important;
}

    .failed > i {
        color: #ea5553;
    }

.success {
    background: #d8f1d0 !important;
}

    .success > i {
        color: #9ed08e;
    }

@keyframes slideIn {
    0% {
        top: -100px;
        opacity: 0;
    }

    100% {
        top: 13px;
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        top: 13px;
        opacity: 1;
    }

    100% {
        top: -100px;
        opacity: 0;
    }
}
/*#endregion*/

/*#region*/
.selectedModelContent {
    position: relative;
    font-weight: 600;
}

    .selectedModelContent::after {
        content: '';
        position: absolute;
        height: 3px;
        width: 90%;
        bottom: -2px;
        left: 5%;
        background-color: var(--sal-yellow);
    }

    .selectedModelContent:hover {
        color: var(--sal-yellow) !important;
    }

/*#endregion*/
.error {
    border: 2px solid #ff0000;
    background-color: #ffeeee;
}