﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: #E6E6E6;
}

a, .btn-link {
    color: #0366d6;
}

.btn-indelec {
    color: white;
    background-color: #0060a7;
    border-color: #014e87;
}

    .btn-indelec:hover {
        color: white;
        background-color: #2686cd;
        border-color: #0060a7;
    }

.btn-add {
    color: white;
    background-color: #428BCA;
    border-color: #2F77CA;
}

    .btn-add:hover {
        color: white;
        background-color: #2F77CA;
        border-color: #428BCA;
    }

.btn-csv {
    color: white;
    background-color: #175C37;
    border-color: #174E37;
}

    .btn-csv:hover {
        color: white;
        background-color: #174E37;
        border-color: #175C37;
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
    padding-left: 10px;
    padding-right: 10px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


.bloc {
    background: white;
    border-radius: 5px;
    padding: 0;
    width: 100%;
    box-shadow: 1px 0px 20px rgba(0,0,0,0.08);
}

    .bloc > .bloc-header {
        background: rgba(0,0,0,.03);
        border-bottom: 1px solid rgba(0,0,0,.125);
        padding: 10px 10px 20px 15px;
        width: 100%;
        border-radius: 5px 5px 0 0;
    }

        .bloc > .bloc-header > .card-title {
            margin-bottom: 0 !important;
            font-size: 18px;
        }

    .bloc > .bloc-header-customer {
        background: #0060a7;
        color: white;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 12px;
    }

    .bloc > .bloc-content {
        background: white;
        padding: 15px 20px;
        width: 100%;
        border-radius: 5px;
    }

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.flag_link {
    margin-right: 5px;
    margin-left: 5px;
}

.flag_icon {
    border: 1px solid black;
    height: 18px;
}

.thead-customer {
    background-color: #0060a7;
    color: white;
}

.home-view {
    background: white;
    display: flex;
    flex-direction: row;
}

.header-view {
    background: #E6E6E6;
    text-align: center;
    height: 100vh;
    width: 100%;
    max-width: 700px;
}

.site-info {
    padding-top: 150px;
}

.content-view {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 640.98px) {
    .header {
        height: 120px;
    }

    .home-view {
        display: flex;
        flex-direction: column;
    }

    .header-view {
        height: auto;
    }

    .site-info {
        padding: 5px 0;
    }

    .login-view {
        margin: 10px 0 20px 0;
    }

    .content-view {
        padding: 10px;
        height: 100vh;
        display: block;
    }
}

/***** AREA *****/

.areas-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.area {
    min-height: 40px;
    margin: 20px;
    min-width: 320px;
    flex: 1 1 auto;
    border-radius: 3px;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    transition: 200ms ease-in;
    text-align: center;
}

    .area:hover {
        box-shadow: 0 15px 20px rgba(0,0,0,.1);
        background: linear-gradient(white, rgba(255,255,255,.7));
    }

    .area > .area-header {
        background: #0060a7;
        color: white;
        padding: 10px 10px;
        border-radius: 3px 3px 0 0;
        text-align: left;
    }

        .area > .area-header > .title {
            margin: 5px 10px;
            line-height: 16px;
        }

            .area > .area-header > .title > i {
                color: #EEEEEE;
                font-size: 13px;
            }

    .area > .area-content {
        color: black;
        padding: 6px;
    }


    .area .product {
        background: #f4f6f7;
        display: flex;
        border-radius: 10px;
        padding: 5px;
        height: 70px;
        margin: 5px;
        flex: 0 0 220px;
        align-items: center;
        cursor: pointer;
    }

        .area .product:hover {
            background: rgba(0, 96, 167, 0.3);
        }

        .area .product > .product-image {
            border-radius: 50%;
        }

            .area .product > .product-image > img {
                max-height: 60px;
                max-width: 60px;
                border-radius: 50%;
                object-fit: cover;
            }

        .area .product > .product-details {
            margin-left: 5px;
            text-align: left;
            font-size: 14px;
        }

            .area .product > .product-details > .main {
                font-weight: bold;
            }

/***** PAGER *****/

.btn-pager {
    margin-left: 2px;
    margin-right: 2px;
}

    .btn-pager:first-child {
        margin-left: 0px;
    }

    .btn-pager:last-child {
        margin-right: 0px;
    }

input[type="radio"] {
    -webkit-appearance: none;
    background-color: white;
    margin: 0;
    font: inherit;
    width: 20px;
    height: 20px;
    border: 2px solid #0060a7;
    border-radius: 50%;
    display: inline-grid;
    place-content: center;
}

    input[type="radio"]::before {
        content: "";
        width: 12px;
        height: 12px;
        border-radius: 50%;
        transform: scale(0);
        transition: 120ms transform ease-in-out;
        box-shadow: inset 1em 1em #0060a7;
    }

    input[type="radio"]:checked::before {
        transform: scale(1);
    }

    input[type="radio"]:focus {
        outline: max(2px, 0.15em) solid blue;
        outline-offset: max(2px, 0.15em);
    }


.table {
    text-align: center !important;
}

.table-curved {
    border-radius: 5px;
}

    .table-curved th:first-child {
        border-radius: 5px 0 0 0;
    }

    .table-curved th:last-child {
        border-radius: 0 5px 0 0;
    }

    .table-curved th:only-child {
        border-radius: 5px 5px 0 0;
    }

    .table-curved tr:last-child td:first-child {
        border-radius: 0 0 0 5px;
    }

    .table-curved tr:last-child td:last-child {
        border-radius: 0 0 5px 0;
    }

.intro {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.intro_content {
    border-radius: 10px;
    width: 600px;
    height: 400px;
    background: white;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

.intro_skip {
    width: auto;
    background: #428BCA;
    padding: 10px;
    color: white;
    text-align: right;
    border-radius: 10px 10px 0 0;
}


/**** DASHBOARD ****/

#dashboard {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
}

.dashboard_bloc {
    border-radius: 10px;
    padding: 0;
    margin: 10px;
    min-height: 140px;
    background: white;
}

.dashboard_bloc_simple {
    flex: 0 0 240px;
}

.dashboard_bloc_double {
    flex: 0 0 500px;
}

.dashboard_bloc_triple {
    flex: 0 0 740px;
}

.dashboard_bloc > .bloc_header {
    padding: 15px 10px;
    border-radius: 10px 10px 0px 0px;
    color: white;
    font-size: 18px;
    font-weight: 300;
    height: 40%;
}

.dashboard_bloc > .bloc_content {
    text-align: center;
    padding: 15px 10px;
    border-radius: 0px 0px 10px 10px;
    font-weight: normal;
    font-size: 20px;
    height: 60%;
}

    .dashboard_bloc > .bloc_content > b {
        font-size: 38px;
    }



.dashboard_bloc > .little_list_content {
    font-size: 12px;
    border-radius: 0 0 10px 10px;
    padding: 5px;
}

    .dashboard_bloc > .little_list_content td {
        padding-top: 5px;
        padding-bottom: 2px;
        text-align: center;
    }


@media (max-width: 640.98px) {
    .dashboard_bloc {
        margin: 10px 0;
    }

    .dashboard_bloc_simple, .dashboard_bloc_double, .dashboard_bloc_triple {
        flex: 0 0 100%;
    }
}

.table-select tr {
    cursor: pointer;
}

.table-spacing td {
    padding-bottom: 5px !important;
}