﻿:root {
    --primary-font-family: Roboto,RobotoFallback,"Noto Kufi Arabic",Helvetica,Arial,sans-serif;
    --primary-color: #052149;
    --primary-color-hover: #7ca3ed;
    --primary-color-selected: color-mix(in srgb, var(--primary-color-hover), white 80%);
    --accent-color: #EF7F1B; /* Orange EthnoForms */
    --success-color: #8bc34a;
    --dark-success-color: #009751;
    --danger-color: #fe5d51;
    --border-color: #ddd;
    --danger-color: #fe5d51;
    --light-color: #f3f2f1;
    --text-color: black;
    --text-grey: #b5b5c3;
    --small-rem: 0.3rem;
    --medium-rem: 0.7rem;
    --big-rem: 1.3rem;
    --small-em: 0.3em;
    --medium-em: 0.7em;
    --big-em: 1.3em;
    --base-border-radius: 8px;
    --big-border-radius: calc(var(--base-border-radius) * 2);
}

/* --------------- CSS Reset --------------- */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    display: block;
    max-height: 100%;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
    -webkit-appearance: none;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
/*@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}*/

/* --------------- CSS Blocks --------------- */
.app {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

.app-head {
    height: 70px;
    grid-row: 1 / 2;
    align-items: center;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

    .app-head .app-head-content {
        display: flex;
        align-items: center;
        overflow: hidden;
        height: 100%;
    }

    .app-head picture {
        height: 100%;
        width: 302px;
    }

    @media (max-width: 720px) {
        .app-head picture {
            width: 86px;
        }
    }

    .app-head .logout {
        padding: 0 12px;
        line-height: 0px;
        color: white;
    }


    .app-head picture {
        height: 100%;
        width: 302px;
    }

@media (max-width: 720px) {
    .app-head picture {
        width: 86px;
    }
}

        .app-head .logout .dx-button-mode-text.dx-state-focused {
            background-color: var(--primary-color-hover);
        }

    #my-groups-button .dx-button-text {
        color: var(--light-color);
        text-transform: initial;
        font-size: 14px;
        letter-spacing: initial;
        background-color: var(--primary-color);
        font-weight: 600;
    }

    .login-logo {
        width: 360px;
    }

#my-groups-button {
    padding: 2px 12px;
}

#my-groups-button .dx-button-content {
    padding: 0;
    background-color: var(--primary-color);
}

    #my-groups-button:hover .dx-button-content {
        background-color: var(--primary-color-hover);
    }


        #my-groups-button:hover .dx-button-content .dx-button-text {
            background-color: var(--primary-color-hover);
            color: white;
        }

    #user-button .dx-button-text {
        color: white;
        text-transform: initial;
        font-size: 14px;
        letter-spacing: initial;
        font-weight: 600;
        background-color: transparent;
    }

    #user-button:hover .dx-button-text {
        background-color: var(--primary-color-hover);
        color: white;
    }

    #user-button .dx-button-text.selected {
        background-color: var(--primary-color-hover);
    }

    .app-head .menu,
    .dx-dropdownmenu-popup .menu {
        font-size: 14px;
        padding: 8px 12px;
        text-decoration: none;
        font-weight: 600;
        border-radius: var(--base-border-radius);
        white-space: nowrap;
        color: var(--light-color);
        margin-left: 12px;
    }

    .dx-dropdownmenu-popup .menu {
        color: var(--primary-color);
        display: block;
        width: 100%;
        margin-left: 0px;
    }

        .app-head .menu.selected,
        .dx-dropdownmenu-popup .menu.selected {
            background-color: var(--primary-color-hover);
            color: white;
        }

        .app-head .menu:hover,
        .dx-dropdownmenu-popup .menu:hover {
            background-color: var(--primary-color-hover);
            color: white;
        }

    .dx-button-mode-text.dx-state-hover {
        background-color: var(--primary-color-hover);
    }

.upgrade-button {
    display: flex;
    align-items: center;
    gap: var(--medium-rem);
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 14px;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--base-border-radius);
    transition: 0.3s ease;
    cursor: pointer;
}

.upgrade-button:hover{
    color: white;
    background: var(--accent-color);
}


.app-main {
    grid-row: 2 / end;
    display: grid;
}

.launcher {
    position: absolute;
    height: 100vh;
    background-color: white;
    width: min(100vw, 314px);
    box-shadow: rgb(0 0 0 / 22%) 0px 25.6px 57.6px 0px, rgb(0 0 0 / 18%) 0px 4.8px 14.4px 0px;
    transition: .2s all ease-out;
}

/* DeveExtrement fix */
.dx-button-has-icon .dx-icon {
    font-size: 14px;
}

.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td, .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused):hover > td {
    background-color: var(--primary-color-selected);
}

.color-primary {
    color: var(--primary-color);
}

.color-primary-selected {
    color: var(--primary-color-selected);
}

.color-primary-hover {
    color: var(--primary-color-hover);
}

.color-accent {
    color: var(--accent-color);
}

.color-danger {
    color: var(--danger-color);
}

.no-radius {
    border-radius: 0;
}


/* Fix style intro js  (tutoriels) */
.introjs-tooltip {
    border-radius: 16px !important;
}

.introjs-button:focus {
    box-shadow: 0 0 0 .2rem var(--primary-color-hover) !important;
}

.introjs-bullets ul li a:focus, .introjs-bullets ul li a:hover {
    background: var(--primary-color-hover) !important;
}

.introjs-bullets ul li a.active {
    background: var(--primary-color-hover) !important;
}

.introjs-button:hover {
    background-color: var(--primary-color-selected) !important;
}

.introjs-button {
    border-radius: 8px !important;
}

    input:autofill {
        box-shadow: 0 0 0 40px #fff inset !important;
    }

    #login-form .dx-button-mode-contained.dx-button-normal {
        box-shadow: none;
}

.color-white .dx-button-mode-text.dx-button-default .dx-icon {
    color: white !important;
}

.no-shadow {
    box-shadow: none;
}

    .no-shadow.dx-button-mode-contained.dx-button-normal {
        box-shadow: none;
    }

.dx-list-group-header {
    font-weight: 600;
}