:root {
    accent-color: var(--md-sys-color-primary);
}

main {
    background: linear-gradient(0deg, rgba(190, 211, 224, 0.8) 0%, rgba(190, 211, 224,0.1) 25%, rgb(248, 251, 252) 100%);
}

body {
    display: flex;
    flex-flow: column;
    min-height: 100vh;
}

.input-group-btn {
    display: flex;
    align-self: center;
    height: 100%;
    cursor:pointer;
}

.custom-calendar{
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
    height: calc(1.5em + .75rem + 2px);
}

.custom-calendar > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.custom-calendar > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.license-source {
    font-size:0.8rem;
    font-style:italic;
    color: var(--md-sys-color-on-surface-variant-hover);
    display: inline-block;
    width:100%;
    text-align: right;
}

.alert-historique {
    color: var(--md-sys-color-on-historique) !important;
    background-color: var(--md-sys-color-historique) !important;
}

.zoneChart, .optionAffichage {
    background-color: var(--md-sys-color-surface-bright);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 0.75rem;
}

.textError {
    color: var(--md-sys-color-error);
    display: none;
}

.sidebar-card {
    background-color: var(--md-sys-color-primary-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: .5rem;
    padding-left: .5rem;
    padding-right: .5rem;
    padding-top: .4rem;
    padding-bottom: .3rem;
    margin-bottom: 1rem;
    box-shadow: 0px 6px 6px -4px #0004;
}


@media (max-width: 767px) {
    .sidebar-card > h5 {
        font-size: 1.15rem;
    }

    .sidebar-card > h6 {
        font-size: 0.8rem;
		margin-top: 0.5rem;
    }
}


@media (min-width: 768px) {
    body {
        height: 100vh;
        overflow-y:hidden;
    }
}


@media (min-width: 1199px) {
    .colApp{
        height:100%;
    }
}


@media (max-width: 1200px) {
    .colApp{
        margin-bottom: 2rem;
    }
}


/* Nested dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: 0;
    margin-right: .125rem;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu>a:before {
    display: inline-block;
    margin-right: .255em;
    vertical-align: .1em;
    content: "";
}

@media (max-width: 991px) {
    .dropdown-submenu.pull-left>.dropdown-menu {
        left: -100%;
        top: -0.5rem;
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 5px;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        border-radius: 6px;
    }

    .dropdown-submenu>a:before {
        border-top: .3em solid;
        border-right: .3em solid transparent;
        border-bottom: 0;
        border-left: .3em solid transparent;
    }
}

@media (min-width: 992px) {
    .dropdown-submenu.pull-left>.dropdown-menu {
        left: -100%;
        top: -0.5rem;
        margin-left: 10px;
        margin-right: 0px;
        -webkit-border-radius: 6px 0 6px 6px;
        -moz-border-radius: 6px 0 6px 6px;
        border-radius: 6px 0 6px 6px;
    }

    .dropdown-submenu>a:before {
        border-top: .3em solid transparent;
        border-right: .3em solid;
        border-bottom: .3em solid transparent;
        border-left: 0;
    }
}