﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root {
    /* bs theme*/
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #008080;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd !important;
    --bs-primary-rgb: var(--bs-primary);
    --bs-secondary: #6c757d;
    --bs-success: #008080;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    /*Custom theming*/
    --primary-strong-color: #8a74b1;
    --primary-medium-color: #c9c0dc;
    --primary-light-color: #efecf5;
    --secondary-strong-color: #87bc33;
    --secondary-medium-color: #c6f37d;
    --secondary-text-color: #2d353c;
    --subSection-cardheader-background: var(--primary-light-color);
    --subSection-cardheader-textColor: var(--secondary-text-color);
    --px-input-placeholder-color: #bbb !important;
}
/*** Custom Progiclix + bs styles (px body) ****/
/*.px .btn-success,
.px .bg-success,
.px .alert-success,
.px .text-success {
    background-color: var(--bs-success)!important;
    border-color: var(--bs-success)!important;
    color: var(--bs-light)!important;
}
*/ /*** FIN Custom Progiclix + bs styles (px body) ****/


/* Changer les style de saisie auto-complete des browsers*/
/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

body .px {
    margin: 0;
    /*font-family: "Open Sans",sans-serif !important;*/
    font-size: .75rem !important;
    font-weight: 400 !important;
    line-height: 1.5;
    color: #2d353c;
    background-color: #dee2e6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.px-bg-primary {
    background-color: var(--primary-strong-color);
}

.px-badge-icon {
    vertical-align: baseline !important;
    color: var(--secondary-strong-color);
    font-size: 1.45em !important;
    padding-right: .5em;
}

.rounded-pill {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    vertical-align: middle !important;
    font-size: 1rem !important;
    padding-right: 1.0rem;
    margin: 0 !important;
}

.px-dropdown-floating-label {
    color: var(--px-input-placeholder-color);
    margin-top: -1.45rem;
    margin-left: .15rem;
    width: auto !important;
    background: linear-gradient(to bottom, transparent 0, transparent 1.44em, white 1.45em, white 1.75em, transparent 1.76em, transparent 100%);
}


.top-row {
    height: 3.5rem !important;
    background-color: var(--primary-medium-color) !important;
}

a .navbar-brand {
    white-space: nowrap;
    text-align: center;
    word-break: break-all;
    color: black;
}

img .navbar-brand {
    height: 2.0em
}

/* Provide sufficient contrast against white background */
a .px-list-option-icon {
    opacity: .70 !important;
}

a:hover .px-list-option-icon {
    opacity: 1 !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.app-sidebar .menu .menu-item.active > .menu-link .menu-icon {
    color: var(--secondary-strong-color);
}

.app-without-header .app-content .app-content-padding {
    padding: 0px;
}

.tab-content .tab-pane {
    color: var(--secondary-text-color) !important;
}

.login-container .note {
    margin-bottom: 50px;
}

.app-sidebar {
    background: var(--primary-strong-color);
}

    .app-sidebar .menu .menu-item .menu-link .menu-text {
        color: white;
    }

    .app-sidebar .menu .menu-item .menu-submenu .menu-item.active {
        background: 0 0;
        color: var(--secondary-strong-color) !important;
    }

        .app-sidebar .menu .menu-item .menu-submenu .menu-item.active:after {
            border-color: var(--secondary-strong-color) !important;
        }

    .app-sidebar .menu .menu-item .menu-submenu .menu-item:after {
        width: 9px;
        height: 9px;
        border: 3px solid rgba(255,255,255,.6);
        top: 11px;
        margin-top: -3px;
        z-index: 10;
        background: #2d353c;
        border-radius: 4px;
    }

/*Désactive la scrollbar par défaut de bootstrap lors les pages sont très hautes
    On en a pas besoin parceque on a la scroll bar du browser par défaut
    P.S. si jamais l'application serait "port" a mobile ou tablette, il faudrais voir si
    il faudrait réactiver ce bout
*/
.ps--active-x > .ps__rail-x, .ps--active-y > .ps__rail-y {
    display: none;
}

.app-header {
    background: var(--primary-medium-color);
}

.card-header {
    background: var(--primary-strong-color) !important;
}

.subSection {
    background: var(--subSection-cardheader-background) !important;
    color: var(--subSection-cardheader-textColor) !important;
}

.panel-heading {
    background: var(--primary-strong-color);
}

.tab-content {
    padding: 0px;
}

.nav-tabs {
    margin-bottom: 0;
}

    .nav-tabs .nav-link {
        margin-bottom: -.1em;
    }

    .nav-tabs .nav-item .nav-link {
        background-color: var(--primary-medium-color);
        color: slategray;
    }

        .nav-tabs .nav-item .nav-link.active {
            color: white;
            background-color: var(--primary-strong-color);
            border-bottom: none !important;
        }



.tab-content .tab-pane {
    background-color: #FFF;
    color: #0080FF;
    min-height: 200px;
    height: auto;
}

.logo-image {
    width: 115px;
    height: 75px;
    border-radius: 5%;
    overflow: hidden;
    margin-top: -6px;
}

.theme-color {
    color: #ff5b57;
}

.row {
    margin-bottom: 6px !important;
}

.form-control {
    display: block;
    width: 100%;
    font-size: .75rem;
    font-weight: 600;
    color: #20252a;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 4px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}


/* Pour simuler un Checkbox converti en radio button */
.form-check-radio[type=checkbox] {
    border-radius: 1em !important;
}

.form-check-radio:checked[type=checkbox] {
    /*Circle mark as default radio => Comment Checkbox mark in circle below */
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23FFFFFF'/%3e%3c/svg%3e")!important;*/
}

.form-check-input:checked[type=radio] {
    /*Checkbox mark in circle => comment circle mark as default above */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.checkbox-inline {
    vertical-align: middle !important;
}

.form-group .control-labelList {
    text-align: left;
    padding: 3px 5px;
    cursor: pointer;
    vertical-align: middle !important;
}

.form-check .form-check-label {
    text-align: left;
    cursor: pointer;
    padding-left: 2px;
}

.form-check {
    padding-left: 2.95em;
}


.form-group .control-label {
    cursor: pointer;
    vertical-align: middle !important;
}

    .form-group .control-label.required:before,
    .required-label:before {
        color: var(--px-input-placeholder-color);
        content: "* ";
        display: inline!important;
    }


.px-floating-label {
    color: var(--px-input-placeholder-color);
    margin-top: -1.45rem;
    margin-left: -.57rem;
    width: auto !important;
    background: linear-gradient(to bottom, transparent 0, transparent 1.44em, white 1.45em, white 1.75em, transparent 1.76em, transparent 100%);
}

/*Data tables*/
body table.dataTable thead tr th.sorting:after {
    content: '' !important;
}

@media (max-width: 991.98px) {
    .login.login-with-news-feed .login-container, .login.login-with-news-feed .register-container,
    .register.register-with-news-feed .login-container, .register.register-with-news-feed .register-container {
        padding: 55px !important;
        width: 400px;
    }
}

.field-validation-valid {
    display: none;
}


/*Floating label fields*/
.form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: 34px;
    line-height: 1.25;
    padding-top: 0.75rem;
    padding-bottom: 0;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    padding: 0.5rem .3rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: .65;
    margin: 0;
    padding: 0 0rem !important;
    transform: scale(.85) translateY(-.12rem) translateX(-.40rem);
}

.form-floating > .form-control:focus.dateTime ~ label,
.form-floating > .form-control:not(:placeholder-shown).dateTime ~ label {
    margin-left: -.675rem;
}

.form-floating.px-no-label-with-value > .form-control:focus ~ label,
.form-floating.px-no-label-with-value > .form-control:not(:placeholder-shown) ~ label,
.form-floating.px-no-label-with-value > .form-select ~ label {
    display: none !important;
}

.input-group-text {
    background-color: var(--primary-light-color);
    height: 30px !important;
}


.px-menu-sidebar {
    background-color: transparent !important;
    color: white !important;
}

/* Acces denied custom */
.error .error-code {
    font-size: 110px
}
/* Fin acces denied*/

.px-header-user {
    color: White;
    font-size: 1.5em;
}

.px-header-current-house {
    color: #ccc;
    font-weight: 600;
    font-size: 1em;
}

.px-header-current-house-icon {
    color: var(--secondary-strong-color);
    font-weight: 600;
    font-size: 1.2em;
}

.px-checked {
    color: #083a17;
}

.px-is-checked .px-checked {
    display: inline;
}

.px-is-checked .px-unchecked {
    display: none;
}

.px-unchecked {
    color: gray;
}

.px-is-unchecked .px-checked {
    display: none;
}

.px-is-unchecked .px-unchecked {
    display: inline;
}

.swal2-title {
    font-size: 1.4em !important;
    padding: .7em .9em 0 !important;
}
