﻿@font-face {
    font-family: "mainbold";
    src: url('Fonts/IBMPlexSansArabic-Regular.ttf');
}

@font-face {
    font-family: "mainLight";
    src: url('Fonts/IBMPlexSansArabic-Light.ttf');
}


@font-face {
    font-family: "icon";
    src: url('Fonts/FontAwesomeRegulars.ttf');
}

@font-face {
    font-family: "iconBold";
    src: url('Fonts/FontAwesomeSolid.otf');
}

body {
    --PrimaryColor: #3887BE;
    --PrimaryLightColor: #52D3D8;
    --PrimaryDarkColor: #0766AD;
    --LightColor: #D9D9D9;
    --GrayColor: #C4C4C4;
    --DangerColor: #E4004B;
    --DarkColor: #303030;
    --DarkerColor: #202020;
    font-family: mainbold;
}


*::selection {
    color: white;
    background: var(--PrimaryColor);
}

.icon {
    font-family: iconBold;
    font-size: 17px;
}

input {
    outline: none !important;
    box-shadow: none !important;
}


    input.min {
        min-width: 0px !important;
        width: 130px !important;
    }

    input:not([type='checkbox']) {
        border-width: 0px 0px 2px 0px;
        font-family: 'mainLight';
        border-color: var(--GrayColor);
        border-style: solid;
        padding: 0px 5px;
    }

        input:not([type='checkbox'])::selection {
            background: var(--PrimaryDarkColor);
            color: white;
        }

        input:not([type='checkbox']):focus {
            border-color: var(--PrimaryColor);
        }

    input[type=checkbox] {
        background-size: 115%;
        background-color: white;
        width: 18px;
        height: 18px;
    }

        input[type=checkbox]:checked {
            background-color: var(--PrimaryColor);
            border-color: var(--PrimaryColor);
        }


/*Button*/
.bttn {
    --base: var(--DarkColor);
    --hover: var(--PrimaryColor);
    background: red;
    gap: 10px;
    font-family: mainbold;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    background-color: var(--base);
    border: none;
    border-radius: 12px;
    padding: 3px 12px;
    text-decoration: none;
}

    .bttn.danger {
        --base: darkred;
        --hover: red;
    }


    .bttn > *:not(.icon) {
        flex-grow: 1;
        min-width: 70px;
    }

    .bttn > .icon {
        flex-shrink: 1;
    }

    .bttn:hover {
        background-color: var(--hover);
        color: white;
    }

    .bttn.inactive {
        background-color: var(--GrayColor) !important;
    }
/* Table Control */
.grid-container {
    overflow-x: auto;
    max-width: 100%;
    background-color: white;
    border-radius: 10px;
    border: 2px var(--LightColor) solid;
}


.table-base {
    margin: 0px;
    background-color: transparent;
    border: none;
    height: 100%;
}

    .table-base thead {
        background-color: #f6f8fa;
    }

    .table-base > :not(:last-child) > :last-child > * {
        border-bottom-color: var(--LightColor);
        border-bottom-width: 2px;
    }

    .table-base tbody tr > * {
        vertical-align: middle;
        text-wrap: nowrap;
        padding-block: 4px;
        border: none;
    }

    .table-base tr {
        display: table-row;
    }

    .table-base th {
        padding-block: 7px;
    }

    .table-base th,
    .table-base td {
        padding-inline: 10px;
    }

    .table-base thead .bttn-header {
        display: inline;
        position: relative;
        background-color: transparent;
        color: #000000cc;
        padding: 0px 0px;
        border: none;
        border-radius: 8px 8px 0px 0px;
    }

        .table-base thead .bttn-header::before {
            position: absolute;
            content: ' ';
            background-color: var(--PrimaryColor);
            height: 3px;
            left: 50%;
            width: 50px;
            transform: translateX(-50%);
            bottom: -7px;
            border-radius: 5em 5em 0px 0px
        }

    .table-base thead .inactive::before {
        background-color: var(--LightColor);
    }

    .table-base tbody tr:hover {
        background-color: var(--GrayColor);
    }



    .table-base th:has(.sort-con) {
        padding-left: 30px;
        text-wrap: nowrap;
        position: relative;
    }

    .table-base .sort-con {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0px;
        background-color: transparent;
        border: none;
        width: 25px;
        margin: 0px 9px 0px 0px;
        height: 10px;
    }

        .table-base .sort-con > span {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
            font-family: 'icon';
            font-size: 15px;
            color: #4d4d4dad;
        }

        .table-base .sort-con > :first-child {
            margin-left: 5px;
        }

        .table-base .sort-con > :last-child {
            margin-left: -4px;
        }

        .table-base .sort-con > .active {
            font-family: 'iconBold';
            font-weight: 900;
            color: black;
        }

/* ++Select */
.base-select {
    position: relative;
    border-radius: 8px;
    border: 2px var(--PrimaryColor) solid;
}

    .base-select > .select {
        background-color: transparent;
        border: none;
        min-width: 50px;
        height: 100%;
        width: 100%;
        color: black;
        padding-inline: 15px 25px;
        appearance: none;
    }

        .base-select > .select:focus {
            outline: none;
        }

    .base-select > .icon,
    base-select-search > .icon {
        position: absolute;
        font-family: iconBold;
        top: 50%;
        right: 8px;
        font-size: 15px;
        pointer-events: none;
        color: var(--PrimaryDarkColor);
        font-family: 'icon';
        transform: translateY(-50%) rotateZ(-90deg);
        transition: transform 200ms ease;
    }


    .base-select:has(select:open) > .icon,
    .base-select:has(input:focus) > .icon {
        font-family: 'iconBold';
        transform: translateY(-50%) rotateZ(00deg);
    }

    .base-select > input {
        background-color: transparent;
        border: none;
    }



.base-select-search {
    position: relative;
}


.base-inline-select {
    display: flex;
    flex-direction: row;
    padding: 3px;
    border-radius: 17px;
    background-color: var(--GrayColor);
    gap: 5px;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .base-inline-select > button {
        border: none;
        border-radius: 5em;
        min-width: 60px;
        background-color: transparent;
        padding-inline: 10px;
    }

        .base-inline-select > button.active {
            background-color: var(--DarkColor);
            color: white;
        }


.expander-panel {
    border-radius: 15px;
    background-color: var(--DarkColor);
    padding: 10px;
}

.ep-button {
    background-color: transparent;
    width: 100%;
    color: white;
    border: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: start;
    align-items: center;
    padding: 0px;
}

    .ep-button > span {
        font-size: 1.1em;
    }

    .ep-button > .icon {
        font-family: iconBold;
        font-size: 25px;
        transform: rotateZ(180deg);
        transition: transform 150ms ease-out;
    }

        .ep-button > .icon.active {
            transform: rotateZ(0deg);
        }


.ep-con {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 12px;
    padding: 10px;
}

.border-con > *,
.border-con > * > * {
    border-radius: 0px !important;
}

.border-con > * {
    border-right: 2px var(--PrimaryLightColor) solid;
}

    .border-con > *:first-child,
    .border-con > *:first-child * {
        border-top-left-radius: 15px !important;
        border-bottom-left-radius: 15px !important;
    }

    .border-con > *:last-child,
    .border-con > *:last-child * {
        border-right: none;
        border-top-right-radius: 15px !important;
        border-bottom-right-radius: 15px !important;
    }


.row-group {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    max-width: 95vw;
}

    .row-group > label {
        position: relative;
        width: 150px;
        vertical-align: middle;
        align-self: center;
    }

        .row-group > label:has(.icon) {
            padding-left: 16px;
        }

        .row-group > label > .icon {
            position: absolute;
            top: 50%;
            height: 16px;
            left: 0px;
            font-size: 9px;
            transform: translateY(-50%);
            opacity: 0.9;
        }


    .row-group > *:not(label) {
        min-width: 120px;
        width: auto;
        justify-self: center;
        flex-grow: 1;
    }

    .row-group > input[type=checkbox] {
        flex-grow: 0;
        min-width: 30px
    }


.rtl .row-group {
    flex-direction: row-reverse;
}

    .rtl .row-group > label {
        text-align: end;
    }

        .rtl .row-group > label:has(.icon) {
            padding-left: 0px;
            padding-right: 16px;
        }

        .rtl .row-group > label > .icon {
            right: 0px;
            left: unset;
        }

.map {
    position: relative;
    width: 80vw;
    height: 80vh;
}

    .map > #map {
        width: 100%;
        height: 100%;
    }

    .map > .control {
        display: flex;
        flex-direction: row;
        position: absolute;
        bottom: 0px;
        right: 0px;
        gap: 10px;
    }


    .map > #map button {
        background-color: var(--DarkColor);
        color: white;
        width: 35px;
        font-size: 20px;
        aspect-ratio: 1 / 1;
        border: none;
        border-radius: 8px;
        margin-right: 5px;
        margin-bottom: 5px;
    }


    .map > #map ul {
        display: none;
    }


.dd-container {
    --height: 40px;
    position: relative;
    z-index: 20;
    overflow: visible;
}

    .dd-container > input[type="checkbox"] {
        position: absolute;
        left: -9999px;
        opacity: 0;
        pointer-events: none;
    }



.dd-input:checked + label,
.dd-input:not(:checked) + label {
    position: relative;
    height: var(--height);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--DarkerColor);
    color: white;
    cursor: pointer;
}

.dd-input + label:hover {
    background-color: var(--PrimaryColor);
}

.dd-input:checked + label:before,
.dd-input:not(:checked) + label:before {
    position: fixed;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    z-index: -1;
    cursor: auto;
    pointer-events: none;
}

.dd-input:checked + label:before {
    pointer-events: auto;
}


.dd-items {
    position: absolute;
    top: var(--height);
    left: 0px;
    width: auto;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background-color: #111;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}

.r .dd-items {
    left: unset;
    right: 0px;
}

.dd-input:checked ~ .dd-items {
    display: flex;
    pointer-events: auto;
}


.dd-table {
    position: absolute;
    top: 0px;
    right: 0px;
}

.img-s,
.img-xs,
.img-m,
.img-l {
    --min: 50px;
    --max: 90px;
    object-fit: cover;
    min-width: var(--min);
    min-height: var(--min);
    max-width: var(--max);
    max-height: var(--max);
}

.img-xs {
    --min: 25px;
    --max: 35px;
}

.img-m {
    --min: 65px;
    --max: 110px;
}

.img-l {
    --min: 250px;
    --max: 310px;
    object-fit: contain;
}

.img-xl {
    min-width: 80vw;
    min-height: 50vh;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.img-selector {
    position: relative;
    border: 2px var(--DarkColor) dashed;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    min-height: 35px
}


    .img-selector::after {
        content: attr(data-content);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'icon';
        color: rgba(0,0,0,0.7);
        font-size: 25px;
        pointer-events: none;
    }

    .img-selector > input {
        position: absolute;
        color: transparent;
        background-color: transparent;
        inset: 0px;
        border: none;
    }

        .img-selector > input::file-selector-button {
            display: none;
        }

        .img-selector > input:hover {
            background-color: white;
            opacity: 0.5;
        }

    .img-selector:has(input:hover) {
        border-color: var(--PrimaryDarkColor);
    }

        .img-selector:has(input:hover):after {
            color: var(--PrimaryDarkColor);
        }




.general-search {
    --height: 32px;
    position: relative;
    min-width: 200px;
    height: var(--height);
    outline: 2px var(--PrimaryDarkColor) solid;
    border-radius: 10px;
}

.gs-container {
    display: flex;
}

    .gs-container > * {
        height: var(--height);
    }

.gs-input {
    position: relative;
    flex-grow: 1;
}

    .gs-input > * {
        position: absolute;
    }

    .gs-input > input {
        left: 0px;
        top: 0px;
        width: 100%;
        height: 100%;
        padding-left: 10px;
        border: none !important;
        background-color: transparent;
    }

    .gs-input > div,
    .gs-input > .icon {
        top: 50%;
        transform: translateY(-50%);
    }

    .gs-input > div {
        pointer-events: none;
        padding-left: 10px;
        text-align: start;
    }

    .gs-input > .icon {
        color: var(--PrimaryDarkColor);
        right: 8px;
    }

.general-search.active .border-con > * {
    border-end-start-radius: 0px !important;
    border-end-end-radius: 0px !important;
}

.general-search .items {
    position: absolute;
    top: calc(var(--height) + 5px);
    left: 0px;
    right: 0px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    border: 2px var(--PrimaryColor) solid;
    border-radius: 13px !important;
    padding: 5px;
    z-index: 410;
    box-shadow: 3px 3px 15px color-mix(in srgb, var(--PrimaryColor), transparent 40%);
    opacity: 0;
    pointer-events: none;
    transition: 400ms ease-out;
    transition-property: transform, opacity;
    transform: scaleY(0.3);
    transform-origin: top;
}

    .general-search .items button {
        background-color: transparent;
        border: none;
        padding: 2px 0px;
    }

        .general-search .items button:hover {
            background-color: var(--PrimaryColor);
            border-radius: 5em;
            color: white;
            font-weight: bold;
        }


.general-search.active .items {
    pointer-events: unset;
    transform: scaleY(1);
    opacity: 1;
}

.general-search:not(.active) input {
    opacity: 0;
}

.general-search.active .gs-input > div {
    display: none;
}

.general-search .right,
.general-search .left {
    display: flex;
    flex-direction: row;
}

    .general-search .right > *,
    .general-search .left > * {
        background-color: var(--PrimaryLightColor);
        min-width: 40px;
        color: white;
        border: none;
    }


    .general-search .right > * {
        border-left: 2px var(--PrimaryColor) solid;
    }

        .general-search .right > *:last-child {
            border-radius: 0px 10px 10px 0px;
        }

    .general-search .left > * {
        border-right: 2px var(--PrimaryColor) solid;
    }

        .general-search .left > *:first-child {
            border-radius: 10px 0px 0px 10px;
        }

.valid-error {
    font-size: 0.8em;
    color: red;
}

    .valid-error::before {
        content: 'star';
        font-family: 'iconBold';
        margin-right: 5px;
    }


.inline-option {
    display: flex;
    flex-direction: row;
}

    .inline-option > button {
        border-radius: 0px;
    }

        .inline-option > button:first-child {
            border-radius: 15px 0px 0px 15px;
        }

        .inline-option > button:last-child {
            border-radius: 0px 15px 15px 0px;
        }


/*PopUp*/
.popup {
    position: fixed;
    z-index: 1000;
    isolation: isolate;
    display: none;
    align-items: center;
    justify-content: center;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 110vh;
    padding-inline: 20px;
    padding-bottom: 60px
}

    .popup.active {
        display: flex;
    }

.popup-container {
    display: flex;
    flex-direction: column;
    min-height: 100px;
    padding: 20px;
    gap: 20px;
    border: gray 1px solid;
    border-radius: 10px;
    background-color: white;
    max-height: calc(100% - 60px);
    overflow: auto;
}

.popup-header {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px var(--PrimaryColor) solid;
}

    .popup-header > div {
        font-size: 1.2em;
        font-family: mainLight;
        font-weight: 100;
    }

    .popup-header > button {
        margin-left: auto;
        background-color: transparent;
        border: none;
        font-family: 'icon';
        font-size: 30px;
        line-height: 20px;
    }

        .popup-header > button:hover {
            color: var(--DangerColor)
        }

.popup-background {
    position: absolute;
    inset: 0px;
    border: none;
    background: rgba(0,0,0,0.5);
    z-index: -5;
    height: 100%;
    width: 100%;
}



.tabs {
    position: relative;
    display: flex;
    flex-direction: row;
    padding-inline: 20px;
    padding-bottom: 10px;
    overflow: hidden;
}

    .tabs > button {
        position: relative;
        border: 2px blue solid;
        border-color: transparent;
        border-bottom: none;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
        padding: 5px 10px 0px;
        background-color: transparent;
    }

    .tabs > .active {
        font-weight: bold;
        border-color: var(--PrimaryColor) !important;
        background: linear-gradient(0deg,transparent,color-mix(in hsl, transparent, var(--PrimaryColor) 20%) );
    }


        .tabs > .active::before,
        .tabs > .active::after {
            content: ' ';
            position: absolute;
            bottom: -10px;
            height: 10px;
            width: 100vw;
            border-bottom: 2px var(--PrimaryColor) solid;
        }

        .tabs > .active::before {
            right: -100vw;
            border-bottom-left-radius: 10px;
            border-left: 2px var(--PrimaryColor) solid;
        }


        .tabs > .active::after {
            left: -100vw;
            border-bottom-right-radius: 10px;
            border-right: 2px var(--PrimaryColor) solid;
        }


.hover-target .hover-img {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    max-width: 50vw;
    max-height: 50vh;
    border-radius: 15px;
    border: 2px var(--PrimaryColor) solid;
    z-index: 300;
}

.hover-target:hover .hover-img {
    display: block;
}
/**/
@font-face {
    font-family: "mainbold";
    src: url('Fonts/IBMPlexSansArabic-Regular.ttf');
}

@font-face {
    font-family: "mainLight";
    src: url('Fonts/IBMPlexSansArabic-Light.ttf');
}


@font-face {
    font-family: "icon";
    src: url('Fonts/FontAwesomeRegulars.ttf');
}

@font-face {
    font-family: "iconBold";
    src: url('Fonts/FontAwesomeSolid.otf');
}

body {
    --PrimaryColor: #3887BE;
    --PrimaryLightColor: #52D3D8;
    --PrimaryDarkColor: #0766AD;
    --LightColor: #D9D9D9;
    --GrayColor: #C4C4C4;
    --DangerColor: #E4004B;
    --DarkColor: #303030;
    --DarkerColor: #202020;
    font-family: mainbold;
}


*::selection {
    color: white;
    background: var(--PrimaryColor);
}

.icon {
    font-family: iconBold;
    font-size: 17px;
}

input {
    outline: none !important;
    box-shadow: none !important;
}


    input.min {
        min-width: 0px !important;
        width: 130px !important;
    }

    input:not([type='checkbox']) {
        border-width: 0px 0px 2px 0px;
        font-family: 'mainLight';
        border-color: var(--GrayColor);
        border-style: solid;
        padding: 0px 5px;
    }

        input:not([type='checkbox'])::selection {
            background: var(--PrimaryDarkColor);
            color: white;
        }

        input:not([type='checkbox']):focus {
            border-color: var(--PrimaryColor);
        }

    input[type=checkbox] {
        background-size: 115%;
        background-color: white;
        width: 18px;
        height: 18px;
    }

        input[type=checkbox]:checked {
            background-color: var(--PrimaryColor);
            border-color: var(--PrimaryColor);
        }


/*Button*/
.bttn {
    --base: var(--DarkColor);
    --hover: var(--PrimaryColor);
    background: red;
    gap: 10px;
    font-family: mainbold;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    background-color: var(--base);
    border: none;
    border-radius: 12px;
    padding: 3px 12px;
    text-decoration: none;
}

    .bttn.danger {
        --base: darkred;
        --hover: red;
    }


    .bttn > *:not(.icon) {
        flex-grow: 1;
        min-width: 70px;
    }

    .bttn > .icon {
        flex-shrink: 1;
    }

    .bttn:hover {
        background-color: var(--hover);
        color: white;
    }

    .bttn.inactive {
        background-color: var(--GrayColor) !important;
    }
/* Table Control */
.grid-container {
    overflow-x: auto;
    max-width: 100%;
    background-color: white;
    border-radius: 10px;
    border: 2px var(--LightColor) solid;
}


.table-base {
    margin: 0px;
    background-color: transparent;
    border: none;
    height: 100%;
}

    .table-base thead {
        background-color: #f6f8fa;
    }

    .table-base > :not(:last-child) > :last-child > * {
        border-bottom-color: var(--LightColor);
        border-bottom-width: 2px;
    }

    .table-base tbody tr > * {
        vertical-align: middle;
        text-wrap: nowrap;
        padding-block: 4px;
        border: none;
    }

    .table-base tr {
        display: table-row;
    }

    .table-base th {
        padding-block: 7px;
    }

    .table-base th,
    .table-base td {
        padding-inline: 10px;
    }

    .table-base thead .bttn-header {
        display: inline;
        position: relative;
        background-color: transparent;
        color: #000000cc;
        padding: 0px 0px;
        border: none;
        border-radius: 8px 8px 0px 0px;
    }

        .table-base thead .bttn-header::before {
            position: absolute;
            content: ' ';
            background-color: var(--PrimaryColor);
            height: 3px;
            left: 50%;
            width: 50px;
            transform: translateX(-50%);
            bottom: -7px;
            border-radius: 5em 5em 0px 0px
        }

    .table-base thead .inactive::before {
        background-color: var(--LightColor);
    }

    .table-base tbody tr:hover {
        background-color: var(--GrayColor);
    }



    .table-base th:has(.sort-con) {
        padding-left: 30px;
        text-wrap: nowrap;
        position: relative;
    }

    .table-base .sort-con {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0px;
        background-color: transparent;
        border: none;
        width: 25px;
        margin: 0px 9px 0px 0px;
        height: 10px;
    }

        .table-base .sort-con > span {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
            font-family: 'icon';
            font-size: 15px;
            color: #4d4d4dad;
        }

        .table-base .sort-con > :first-child {
            margin-left: 5px;
        }

        .table-base .sort-con > :last-child {
            margin-left: -4px;
        }

        .table-base .sort-con > .active {
            font-family: 'iconBold';
            font-weight: 900;
            color: black;
        }

/* ++Select */
.base-select {
    position: relative;
    border-radius: 8px;
    border: 2px var(--PrimaryColor) solid;
}

    .base-select > .select {
        background-color: transparent;
        border: none;
        min-width: 50px;
        height: 100%;
        width: 100%;
        color: black;
        padding-inline: 15px 25px;
        appearance: none;
    }

        .base-select > .select:focus {
            outline: none;
        }

    .base-select > .icon,
    base-select-search > .icon {
        position: absolute;
        font-family: iconBold;
        top: 50%;
        right: 8px;
        font-size: 15px;
        pointer-events: none;
        color: var(--PrimaryDarkColor);
        font-family: 'icon';
        transform: translateY(-50%) rotateZ(-90deg);
        transition: transform 200ms ease;
    }


    .base-select:has(select:open) > .icon,
    .base-select:has(input:focus) > .icon {
        font-family: 'iconBold';
        transform: translateY(-50%) rotateZ(00deg);
    }

    .base-select > input {
        background-color: transparent;
        border: none;
    }



.base-select-search {
    position: relative;
}


.base-inline-select {
    display: flex;
    flex-direction: row;
    padding: 3px;
    border-radius: 17px;
    background-color: var(--GrayColor);
    gap: 5px;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .base-inline-select > button {
        border: none;
        border-radius: 5em;
        min-width: 60px;
        background-color: transparent;
        padding-inline: 10px;
    }

        .base-inline-select > button.active {
            background-color: var(--DarkColor);
            color: white;
        }


.expander-panel {
    border-radius: 15px;
    background-color: var(--DarkColor);
    padding: 10px;
}

.ep-button {
    background-color: transparent;
    width: 100%;
    color: white;
    border: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: start;
    align-items: center;
    padding: 0px;
}

    .ep-button > span {
        font-size: 1.1em;
    }

    .ep-button > .icon {
        font-family: iconBold;
        font-size: 25px;
        transform: rotateZ(180deg);
        transition: transform 150ms ease-out;
    }

        .ep-button > .icon.active {
            transform: rotateZ(0deg);
        }


.ep-con {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 12px;
    padding: 10px;
}

.border-con > *,
.border-con > * > * {
    border-radius: 0px !important;
}

.border-con > * {
    border-right: 2px var(--PrimaryLightColor) solid;
}

    .border-con > *:first-child,
    .border-con > *:first-child * {
        border-top-left-radius: 15px !important;
        border-bottom-left-radius: 15px !important;
    }

    .border-con > *:last-child,
    .border-con > *:last-child * {
        border-right: none;
        border-top-right-radius: 15px !important;
        border-bottom-right-radius: 15px !important;
    }


.row-group {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    max-width: 95vw;
}

    .row-group > label {
        position: relative;
        width: 150px;
        vertical-align: middle;
        align-self: center;
    }

        .row-group > label:has(.icon) {
            padding-left: 16px;
        }

        .row-group > label > .icon {
            position: absolute;
            top: 50%;
            height: 16px;
            left: 0px;
            font-size: 9px;
            transform: translateY(-50%);
            opacity: 0.9;
        }


    .row-group > *:not(label) {
        min-width: 120px;
        width: auto;
        justify-self: center;
        flex-grow: 1;
    }

    .row-group > input[type=checkbox] {
        flex-grow: 0;
        min-width: 30px
    }


.rtl .row-group {
    flex-direction: row-reverse;
}

    .rtl .row-group > label {
        text-align: end;
    }

        .rtl .row-group > label:has(.icon) {
            padding-left: 0px;
            padding-right: 16px;
        }

        .rtl .row-group > label > .icon {
            right: 0px;
            left: unset;
        }

.map {
    position: relative;
    width: 80vw;
    height: 80vh;
}

    .map .ol-viewport {
        width: 100%;
        height: 100%;
    }

    .map > .control {
        display: flex;
        flex-direction: row;
        position: absolute;
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }

    .map .ol-overlaycontainer-stopevent {
        display: flex;
        gap: 5px;
        padding: 10px;
        align-items: start;
    }

        .map .ol-overlaycontainer-stopevent .ol-zoom-in {
            margin-right: 5px;
        }

    .map .ol-viewport button {
        background-color: var(--DarkColor);
        color: white;
        width: 35px;
        font-size: 20px;
        aspect-ratio: 1 / 1;
        border: none;
        border-radius: 8px;
        font-family: 'iconBold';
    }


    .map .ol-viewport ul {
        display: none;
    }


.dd-container {
    --height: 40px;
    position: relative;
    z-index: 20;
    overflow: visible;
}

    .dd-container > input[type="checkbox"] {
        position: absolute;
        left: -9999px;
        opacity: 0;
        pointer-events: none;
    }



.dd-input:checked + label,
.dd-input:not(:checked) + label {
    position: relative;
    height: var(--height);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--DarkerColor);
    color: white;
    cursor: pointer;
}

.dd-input + label:hover {
    background-color: var(--PrimaryColor);
}

.dd-input:checked + label:before,
.dd-input:not(:checked) + label:before {
    position: fixed;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    z-index: -1;
    cursor: auto;
    pointer-events: none;
}

.dd-input:checked + label:before {
    pointer-events: auto;
}


.dd-items {
    position: absolute;
    top: var(--height);
    left: 0px;
    width: auto;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background-color: #111;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}

.r .dd-items {
    left: unset;
    right: 0px;
}

.dd-input:checked ~ .dd-items {
    display: flex;
    pointer-events: auto;
}


.dd-table {
    position: absolute;
    top: 0px;
    right: 0px;
}

.img-s,
.img-xs,
.img-m,
.img-l {
    --min: 50px;
    --max: 90px;
    object-fit: cover;
    min-width: var(--min);
    min-height: var(--min);
    max-width: var(--max);
    max-height: var(--max);
}

.img-xs {
    --min: 25px;
    --max: 35px;
}

.img-m {
    --min: 65px;
    --max: 110px;
}

.img-l {
    --min: 250px;
    --max: 310px;
    object-fit: contain;
}

.img-xl {
    min-width: 80vw;
    min-height: 50vh;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.img-selector {
    position: relative;
    border: 2px var(--DarkColor) dashed;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    min-height: 35px
}


    .img-selector::after {
        content: attr(data-content);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'icon';
        color: rgba(0,0,0,0.7);
        font-size: 25px;
        pointer-events: none;
    }

    .img-selector > input {
        position: absolute;
        color: transparent;
        background-color: transparent;
        inset: 0px;
        border: none;
    }

        .img-selector > input::file-selector-button {
            display: none;
        }

        .img-selector > input:hover {
            background-color: white;
            opacity: 0.5;
        }

    .img-selector:has(input:hover) {
        border-color: var(--PrimaryDarkColor);
    }

        .img-selector:has(input:hover):after {
            color: var(--PrimaryDarkColor);
        }




.general-search {
    --height: 32px;
    position: relative;
    min-width: 200px;
    height: var(--height);
    outline: 2px var(--PrimaryDarkColor) solid;
    border-radius: 10px;
}

.gs-container {
    display: flex;
}

    .gs-container > * {
        height: var(--height);
    }

.gs-input {
    position: relative;
    flex-grow: 1;
}

    .gs-input > * {
        position: absolute;
    }

    .gs-input > input {
        left: 0px;
        top: 0px;
        width: 100%;
        height: 100%;
        padding-left: 10px;
        border: none !important;
        background-color: transparent;
    }

    .gs-input > div,
    .gs-input > .icon {
        top: 50%;
        transform: translateY(-50%);
    }

    .gs-input > div {
        pointer-events: none;
        padding-left: 10px;
        text-align: start;
    }

    .gs-input > .icon {
        color: var(--PrimaryDarkColor);
        right: 8px;
    }

.general-search.active .border-con > * {
    border-end-start-radius: 0px !important;
    border-end-end-radius: 0px !important;
}

.general-search .items {
    position: absolute;
    top: calc(var(--height) + 5px);
    left: 0px;
    right: 0px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    border: 2px var(--PrimaryColor) solid;
    border-radius: 13px !important;
    padding: 5px;
    z-index: 410;
    box-shadow: 3px 3px 15px color-mix(in srgb, var(--PrimaryColor), transparent 40%);
    opacity: 0;
    pointer-events: none;
    transition: 400ms ease-out;
    transition-property: transform, opacity;
    transform: scaleY(0.3);
    transform-origin: top;
}

    .general-search .items button {
        background-color: transparent;
        border: none;
        padding: 2px 0px;
    }

        .general-search .items button:hover {
            background-color: var(--PrimaryColor);
            border-radius: 5em;
            color: white;
            font-weight: bold;
        }


.general-search.active .items {
    pointer-events: unset;
    transform: scaleY(1);
    opacity: 1;
}

.general-search:not(.active) input {
    opacity: 0;
}

.general-search.active .gs-input > div {
    display: none;
}

.general-search .right,
.general-search .left {
    display: flex;
    flex-direction: row;
}

    .general-search .right > *,
    .general-search .left > * {
        background-color: var(--PrimaryLightColor);
        min-width: 40px;
        color: white;
        border-radius: 0px;
        border: none;
        line-height: 32px;
        text-align: center;
        text-decoration: none;
    }


    .general-search .right > * {
        border-left: 2px white solid;
    }

        .general-search .right > *:last-child {
            border-radius: 0px 10px 10px 0px;
        }

    .general-search .left > * {
        border-right: 2px white solid;
    }

        .general-search .left > *:first-child {
            border-radius: 10px 0px 0px 10px;
        }

.valid-error {
    font-size: 0.8em;
    color: red;
}

    .valid-error::before {
        content: 'star';
        font-family: 'iconBold';
        margin-right: 5px;
    }


.inline-option {
    display: flex;
    flex-direction: row;
}

    .inline-option > button {
        border-radius: 0px;
    }

        .inline-option > button:first-child {
            border-radius: 15px 0px 0px 15px;
        }

        .inline-option > button:last-child {
            border-radius: 0px 15px 15px 0px;
        }


/*PopUp*/
.popup {
    position: fixed;
    z-index: 1000;
    isolation: isolate;
    display: none;
    align-items: center;
    justify-content: center;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 110vh;
    padding-inline: 20px;
    padding-bottom: 60px;
    background: transparent !important;
}

    .popup.active {
        display: flex;
    }

.popup-container {
    display: flex;
    flex-direction: column;
    min-height: 100px;
    padding: 20px;
    gap: 20px;
    border: gray 1px solid;
    border-radius: 10px;
    background-color: white;
    max-height: calc(100% - 60px);
    overflow: auto;
}

.popup-header {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px var(--PrimaryColor) solid;
}

    .popup-header > div {
        font-size: 1.2em;
        font-family: mainLight;
        font-weight: 100;
    }

    .popup-header > button {
        margin-left: auto;
        background-color: transparent;
        border: none;
        font-family: 'icon';
        font-size: 30px;
        line-height: 20px;
    }

        .popup-header > button:hover {
            color: var(--DangerColor)
        }

.popup-background {
    position: absolute;
    inset: 0px;
    border: none;
    background: rgba(0,0,0,0.6);
    z-index: -5;
    height: 100%;
    width: 100%;
}

.tabs {
    position: relative;
    display: flex;
    flex-direction: row;
    padding-inline: 20px;
    padding-bottom: 10px;
    overflow: hidden;
}

    .tabs > button {
        position: relative;
        border: 2px blue solid;
        border-color: transparent;
        border-bottom: none;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
        padding: 5px 10px 0px;
        background-color: transparent;
    }

    .tabs > .active {
        font-weight: bold;
        border-color: var(--PrimaryColor) !important;
        background: linear-gradient(0deg,transparent,color-mix(in hsl, transparent, var(--PrimaryColor) 20%) );
    }


        .tabs > .active::before,
        .tabs > .active::after {
            content: ' ';
            position: absolute;
            bottom: -10px;
            height: 10px;
            width: 100vw;
            border-bottom: 2px var(--PrimaryColor) solid;
        }

        .tabs > .active::before {
            right: -100vw;
            border-bottom-left-radius: 10px;
            border-left: 2px var(--PrimaryColor) solid;
        }


        .tabs > .active::after {
            left: -100vw;
            border-bottom-right-radius: 10px;
            border-right: 2px var(--PrimaryColor) solid;
        }


.hover-target .hover-img {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    max-width: 50vw;
    max-height: 50vh;
    border-radius: 15px;
    border: 2px var(--PrimaryColor) solid;
    z-index: 300;
}

.hover-target:hover .hover-img {
    display: block;
}