:root {
    --main-blue:#002E42;
    --main-red:#AF212A;
    --main-darker-red: #801323;
    --main-gray: #bbbbbb;
    --main-black:rgb(0, 0, 0);
    --main-back: #fff;
}

html, body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

* {
    margin: 0;
    padding: 0;
}

#page {
    display: grid;
    grid-template-areas: "header"
                        "company"
                        "mainview";
    grid-template-rows: 50px 3vh 90vh;
    grid-template-columns: 1fr;
    overflow-x:unset;

}

#custumerInfo{
    position: fixed;
    top: 50px;
    left: 10px;
}

#mainview {
    box-sizing: border-box;
    overflow-y:scroll;
    overflow-x:unset;
}

#searchIcon{
    display: none;
}

.padding{
    padding: 5px;
}

.sidenavButton {
    color:black;
    text-decoration: none;
    cursor:pointer;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
}

.sidenavButton:hover {
    background-color: gray;
}

.onsync {
    -webkit-animation:spin 2s linear infinite;
    -moz-animation:spin 2s linear infinite;
    animation:spin 2s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

@media only screen and (min-width: 801px) {
    #page > footer {
        display: none;
        grid-area: foot;
        background-color: var(--main-darker-red);
    }

    #jobsitedesktop {
        display:inline-block;
    }

    #page > jobsite {
        display: none;
        grid-area: jobsite;
    }

    #page > #headerdesktop {
        display:block;
    }

    #page > #headermobile {
        display:none;
    }
}

@media only screen and (max-width: 800px) {
    #page {
        height: 100%;
        display: grid;
        grid-template-areas: "header"
                            "company"
                            "mainview"
                            "jobsite"
                            "foot";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto 60px;
    }

    #jobsitedesktop {
        display:none;
    }

    #page > #headerdesktop {
        display:none;
    }

    #page > #headermobile {
        display:block;
    }

    #page > nav {
        display:none;
    }

    #page > footer {
        grid-area: foot;
        background-color: var(--main-darker-red);
        display: grid;
        grid-template-areas: " icon1 icon2 icon3 icon4 icon5";                   
        grid-template-rows: 6vh;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-gap: 0.4rem;
        padding: 5px;
        text-align:center;
    }

    footer > #icon1 {
        grid-area: icon1;
    }

    footer > #icon2 {
        grid-area: icon2;
    }

    footer > #icon3 {
        grid-area: icon3;
    }

    footer > #icon4 {
        grid-area: icon4;
    }

    footer > #icon5 {
        grid-area: icon5;
    }

    #page > jobsite {
        display: block;
        grid-area: jobsite;
    }

    #searchIcon{
        display: block;
    }

    .searchBar{
        display: none;
    }

    table.tableauRes {
        border: none !important;
    }

    table.tableauRes td {
        font-size: inherit !important;
    }
    
    table.tableauRes thead {
        border: none !important;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    table.tableauRes tr {
        display: block;
        border: none !important;
    }
    
    table.tableauRes td {
        border: none !important;
        border-bottom: 1px solid #ddd !important;
        display: block;
        text-align: right !important;
    }
    
    table.tableauRes td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    table.tableauRes td:last-child {
        border-bottom: 0;
    }

    table.tableauRes td:nth-child(odd) { background-color: #fff; }
    table.tableauRes td:nth-child(even) { background-color: #f8f8f8; }

    table.tableauRes tr:nth-child(even) { background-color: inherit !important; }

    .td-left {
        text-align: right;
    }

    .td-right {
        text-align: right;
    }

    .td-center {
        text-align: right;
    }

    table.tableauRes tr {
        border-bottom: 5px solid #888 !important; 
    }
}

#page > header {
    background-color: var(--main-blue);
    color: white;
}

#page > nav {
    grid-area: nav;
    background-color: var(--main-gray);
    overflow: hidden;
    width: 80px;
    
}

#page > main {
    grid-area: main;
    overflow-y: auto;
}

.logoSite{
    background-color: var(--main-blue);
    height:6vh; 
    width: 100%;
}

.header-span {
    display:none;
}

.imageCompagnie {
    display: none;
}

.imageCompagnie a {
    width: 100%;
}

#page > company {
    grid-area: company;
}

#page > info {
    grid-area: info;
}

table.tableauRes {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    width: 100%;
    table-layout: fixed;
}

table.tableauRes caption {
    font-size: 1.5em;
    margin: .5em 0 .75em;
}

table.tableauRes tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: .35em;
}

table.tableauRes th, table.tableauRes td {
    padding: .625em;
    text-align: center;
}

table.tableauRes th {
    font-size: .85em;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.searchBar {
    background-color: transparent;
    color: #eeeeee;
    outline: none;
    outline-style: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid #eeeeee 1px;
    font-size:24px;
    height:24px;
}

table.tableauRes {
    border:0;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
}

table.tableauRes tr {
    background-color: #f8f8f8;
    border-bottom: 1px solid #888;
    padding: .35em;
}

table.tableauRes th, table.tableauRes td {
    padding: 5px;
}

table.tableauRes td {
    font-size:150%;
}

table.tableauRes th {
    background: #002E42;
    color:#fff;
    text-transform: uppercase;
}

table.tableauRes tr:nth-child(odd) { background-color: #fff; }
table.tableauRes tr:nth-child(even) { background-color: #f8f8f8; }

.td-left {
    text-align: left;
}

.td-right {
    text-align: right;
}

.td-center {
    text-align: center;
}
.selectedrow {
    background-color:darkgray !important;
    color: #AF212A !important;
}

/*debut template*/

.panelBlue {
    background-color: royalblue;
    width: 100%;
    float:right;
    height: 100%;
}

.panelRed {
    background-color: red;
    width: 25%;
}

.panelYellow {
    background-color: yellow;
}

.panelGreen {
    background-color: green;
}

.panelGray {
    background-color: gray;
}

.panelHeader {
    padding: 15px;
    height: 20%;
}

.panelGeneral{
    box-sizing: border-box;
    border-radius: 5px;
    border: 0;
    display: inline-block;
}
.panelContent{
    padding: 15px;
    width:100%;
    height: 50%;
}

.panelGros {
    width:400px;
    height: 200px;
}

.panelMoyen {
    width:200px;
    height: 200px;
}

.panelPetit {
    width:100px;
    height: 100px;
}

.panelPetitAllonge {
    width:200px;
    height: 100px;
}

.panelHover:hover {
    box-shadow: 0 2px 5px rgb(0 0 0 / 40%);
}

.buttonGeneral {
    border-radius: 5px;
    height: 100%;
    text-align: left;
    position: relative;
    padding: 5px;
    display: inline-block;
}

.buttonGeneral .buttonBadge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: yellow;
    color: black;
}

.buttonGeneral .buttonBadgeGreen {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: Green;
    color: black;
}

.buttonRed {
    background-color: #AF212A;
    color: white;
    border-color: rgb(130, 28, 28);
}

.buttonRed:hover {
    background-color: rgb(130, 28, 28);
    border-color: rgb(130, 28, 28);
    cursor: pointer;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: block;
    width: 50px;
    height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .sliderBlue {
    background-color: #2196F3;
}

input:focus + .sliderBlue {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .sliderRed {
    background-color: rgb(243, 33, 33);
}

input:focus + .sliderRed {
    box-shadow: 0 0 1px rgb(243, 33, 33);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.progressBar {
    height: 20px;
    margin-bottom: 15px;
    border-radius: 3px;
    box-shadow: none;
    background-color: rgba(0,0,0,0.1);
}

.progressInside {
    width: 35%;
    height: 100%;
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.05em;
    background-color: #25476a;
    box-shadow: none;
    float: left;
    transition: width .6s ease;
}

.multiSelect {
    width: 300px;
}
.multiSelectFont {
    font-size: 12px !important;
}

.select2-container--default .select2-selection--multiple:before {
    content: ' ';
    display: block;
    position: absolute;
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    right: 6px;
    margin-left: -4px;
    margin-top: -2px;top: 50%;
    width: 0;cursor: pointer
}

.select2-container--open .select2-selection--multiple:before {
    content: ' ';
    display: block;
    position: absolute;
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px;
    height: 0;
    right: 6px;
    margin-left: -4px;
    margin-top: -2px;top: 50%;
    width: 0;cursor: pointer
}

/*Fin template*/

md-grid-list {
  margin: 8px;
}

.gray {
  background: #f5f5f5;
}

.green {
  background: #b9f6ca;
}

.yellow {
  background: #ffff8d;
}

.blue {
  background: #84ffff;
}

.purple {
  background: #b388ff;
}

.red {
  background: #ff8a80;
}

.scrooldiv {
    height: 100%;
}

.menu-panel-container {
  pointer-events: auto;
}

.menu-panel {
  width: 256px;
  background-color: #fff;
  border-radius: 4px;
}

.menu-panel .menu-divider {
  width: 100%;
  height: 1px;
  min-height: 1px;
  max-height: 1px;
  margin-top: 4px;
  margin-bottom: 4px;
  background-color: rgba(0, 0, 0, 0.11);
}

.menu-panel .menu-content {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  max-height: 305px;
  overflow-y: auto;
  min-width: 256px;
}

.menu-panel .menu-item {
  display: flex;
  flex-direction: row;
  min-height: 48px;
  height: 48px;
  align-content: center;
  justify-content: flex-start;
}

.menu-panel .menu-item > * {
  width: 100%;
  margin: auto 0;
  padding-left: 16px;
  padding-right: 16px;
}

.menu-panel .menu-item > a.md-button {
  padding-top: 5px;
}

.menu-panel .menu-item > .md-button {
  display: inline-block;
  border-radius: 0;
  margin: auto 0;
  font-size: 15px;
  text-transform: none;
  font-weight: 400;
  height: 100%;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
  text-align: left;
}

.menu-panel .menu-item > .md-button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.menu-panel .menu-item > .md-button md-icon {
  margin: auto 16px auto 0;
}

.menu-panel .menu-item > .md-button p {
  display: inline-block;
  margin: auto;
}

.menu-panel .menu-item > .md-button span {
  margin-top: auto;
  margin-bottom: auto;
}

.menu-panel .menu-item > .md-button .md-ripple-container {
  border-radius: inherit;
}

.sidenav {
    background-color: var(--main-back);
    overflow: hidden;
}

/* Notifications */
.notification {
    display: inline-block;
    position: relative;
    padding: 10px;
    font-size: 2em;
}

.notification::before, 
.notification::after {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.notification::before {
    display: block;
    content: "\f0f3";
    font-family: "FontAwesome";
    transform-origin: top center;
}

.notification::after {
    font-family: Arial;
    font-size: 0.5em;
    font-weight: 500;
    position: absolute;
    top: 3px;
    right: -10px;
    padding: 5px 8px;
    line-height: 100%;
    border-radius: 60px;
    background: rgba(255, 212, 0, 1);
    
    opacity: 0;
    content: attr(data-count);
    opacity: 0;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    transition: transform, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

.notification.notify::before {
    -webkit-animation: ring 1.5s ease;
    animation: ring 1.5s ease;
}

.notification.show-count::after {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}
/* Fin notifications */

.searchbox{
    position:relative;
    min-width:50px;
    width:0%;
    height:50px;
    float:right;
    overflow:hidden;
    
    -webkit-transition: width 0.3s;
    -moz-transition: width 0.3s;
    -ms-transition: width 0.3s;
    -o-transition: width 0.3s;
    transition: width 0.3s;
}

.searchbox-input{
    top:0;
    right:0;
    border:0;
    outline:0;
    background:#dcddd8;
    width:100%;
    height:50px;
    margin:0;
    padding:0px 55px 0px 20px;
    font-size:20px;
    background-color: white;
    border-radius: 5px;
}
.searchbox-input::-webkit-input-placeholder {
    color: var(--main-red);
}
.searchbox-input:-moz-placeholder {
    color: var(--main-red);
}
.searchbox-input::-moz-placeholder {
    color: var(--main-red);
}
.searchbox-input:-ms-input-placeholder {
    color: var(--main-red);
}

.search-icon,
.searchbox-submit{
    width:50px;
    height:50px;
    display:block;
    position:absolute;
    top:0;
    font-family:verdana;
    right:-20px;
    padding:10px;
    margin:0;
    border:0;
    outline:0;
    cursor:pointer;
    color:#FFFFFF;
    background-color: var(--main-blue);
}

.searchbox-open {
    width:400px;
}

.searchbox-page{
    top:0;
    right:0;
    outline:0;
    background:#dcddd8;
    width:100%;
    height:50px;
    margin:0;
    padding:0px 55px 0px 20px;
    font-size:20px;
    background-color: white;
    border-radius: 5px;
}

/*Dialog*/
.dialogdemoBasicUsage #popupContainer {
  position: relative;
}
.dialogdemoBasicUsage .footer {
  width: 100%;
  text-align: center;
  margin-left: 20px;
}
.dialogdemoBasicUsage .footer, .dialogdemoBasicUsage .footer > code {
  font-size: 0.8em;
  margin-top: 50px;
}
.dialogdemoBasicUsage button {
  width: 200px;
}
.dialogdemoBasicUsage div#status {
  color: #c60008;
}
.dialogdemoBasicUsage .dialog-demo-prerendered md-checkbox {
  margin-bottom: 0;
}

/*md-dialog {
    max-height: 100% !important;
    max-width: 100% !important;
    width: 100%;
    height: 100%;
}*/

.dialogFullscreen {
    max-height: 100% !important;
    max-width: 100% !important;
    width: 100%;
    height: 100%;
}

.dialogConfirm {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto;
    height: auto;
}

.searchTheme{
    background-color: var(--main-blue);
}

.md-card-image {
    max-width: 150px;
    max-height: 100px;
    align-self: center;
}

.containerCard {
    justify-content: center;
}

.cardClickable:hover {
    filter: brightness(70%);
    cursor: pointer;
}
.flag {
    height:16px;
    max-height:16px;
    display:inline-block;
    margin-right: 5px;
    vertical-align: bottom;
}
md-card {
    border-radius:5px;
}
.profil{
    margin-left: 50px;
}
.bold{
    font-weight: bold;
}

.popup {
    height: 50%;
}

.paddingIcon {
    padding:10px;
}

    @media (min-width: 769px) {
        .gslide-image img {
            max-height: 100vh !important;
            max-width: 100vw !important;
        }
    }
    .gslide-image img {
        height: 95vh !important;
        width: 95vw !important;
        -o-object-fit: contain !important;
        object-fit: contain !important;
    }
    md-autocomplete {
        display: inline-block !important;
    }
     md-virtual-repeat-container {
      width: 300px;
    }
    .centerblock {
        width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
        .tabimage div {
            margin-left: auto;
            margin-right: auto;
        }
md-tabs {
    border: 2px solid #aaa;
    border-radius:5px !important;
    box-shadow: 3px 3px #444;
    background-color:white;
}

md-tabs .md-tab.md-active, .md-ripple-container {
    color:#AF212A;
}
 md-tabs md-ink-bar {
    color:#AF212A;
    background-color:#AF212A;
 }
#partsdialog {
    background-color:gray;
}