
@font-face {
  font-family: 'Roboto_normal';
  font-style: normal;
  font-weight: 400;
  src: 
    url('assets/fonts/roboto-regular-webfont.woff2') format('woff2'),
    url('assets/fonts/roboto-regular-webfont.woff') format('woff');
}
/*
Theme Name: Genevois
Author: the Publigo team
Author URI: https://www.publigo.fr/
Description: Genevois PWA
Version: 1.1
Text Domain: genevois

*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Normalize (assets/css/normalize.css)
2.0 Normalize (assets/css/bootstrap.css)
3.0 Forms (assets/css/forms.css)
4.0 Print (assets/css/print.css)
5.0 Custom (assets/css/custom.css)

*/

:root {
  --dark-blue: #248ea7;
  --blue: #37b1cf;
  --orange: #db5c25;
}

html {
  height: -webkit-fill-available;
}

body {
    padding: .5rem;
    background: whitesmoke;
    font-family: Roboto_normal, sans-serif;
    font-style: normal;
    font-weight: 400;
    min-height: 100dvh;
    display: flex;
}

#app {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
    border: 1px solid var(--blue);
    box-shadow: 0 0 4px rgba(0,0,0,0.42);
    background-color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#app .header {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(143,207,223,1) 100%);
    border-radius: 6px 6px 0 0;
    position: relative;
    z-index: 3;
}

#app .header img {
    max-width: 200px;
    min-width: 120px;
    width: 54%;
    margin: 0 auto 0.5rem;
}

#app .header .title {
    width: 100%;
    display: none;
    vertical-align: middle;
    justify-content: center;
    color: #000;
}

#app .header .title h1 {
    font-family: Roboto_normal, sans-serif;
    font-weight: 600;
    margin: auto;
    text-transform: uppercase;
    color: var(--orange);
    font-size: clamp(1.3rem,3.2vw,2.1rem);
    padding: 0.5rem 0.75rem;
    margin: auto 0;
    text-align: center;
    width: 100%;
}

#app .header .address {
    display: none;
    margin-top: auto;
    border: 1px solid #d9d6c5;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.42);
    background-color: #fffcf2;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

#app .header .address p {
    color: var(--dark-blue);
    color: #555;
    font-size: 0.875rem;
    margin-top: 0;
    margin-bottom: 5px;
}
#app .header .shortlink {
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
}
#app .header .shortlink p {
    margin-top: 0;
    margin-bottom: 0;
}
#app .header .shortlink button {
    border-radius: 4px;
    padding: 0.5rem .625rem;
}

#app .header .shortlink button.btnAccount.login {
    background-color: #90d0e0;
    border: 1px solid var(--blue);
    box-shadow: 0 0 2px var(--dark-blue);
}
#app .header .shortlink button.btnAccount.logout {
    background-color: #c52020;
    border: 1px solid #830a0a;
    box-shadow: 0 0 2px #830a0a;
}

#app .header .shortlink button.btnAccount:not(.logout) .dashicons-exit,
#app .header .shortlink button.btnAccount:not(.login) .dashicons-admin-users {
    display: none;
} 
#app .header .shortlink button.btnViewPendingInter {
    background-color: var(--orange);
    border-radius: 4px;
    border: 1px solid #853d13;
    box-shadow: 0 0 2px #853d13;
}

#login_form {
    min-width: 280px;
    max-width: 420px;
    width: 80%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin: auto;
}

#before_intervention {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 4vh auto auto;
    min-width: 280px;
    max-width: 460px;
    width: 90%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

#login_form.switchHide,
#before_intervention.switchHide {
    margin-top: -50%;
    opacity: 0;
}
#login_form.hide,
#before_intervention.hide {
    display: none;
}

.searchWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#before_intervention label {
    font-size: 1.25rem;
    width: 100%;
}
#before_intervention input#searchClient {
    margin-top: 0.5rem;
    border-radius: 4px;
}
#interventions-list .content,
#before_intervention .resultsClients {
    margin: 0 auto 1rem;
    width: 100%;
}
#before_intervention .resultsClients button,
#interventions-list .content button {
    position: relative;
}
#before_intervention .resultsClients button:before,
#interventions-list .content button:before {
    content: ''; display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
}

.addClientWrapper {
    margin-top: 2rem;
    padding: 2rem 0 2rem;
    border-top: 1px solid #ccc;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.addClientWrapper:before {
    content: 'OU';
    display: inline-flex;
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #777;
    margin-top: -3rem;
    margin-bottom: 2rem;
}

#before_intervention .searchWrapper button {
    margin: .4rem 0.25rem;
    border-radius: 4px;
}

#before_intervention button.showAddClient,
#before_intervention button.beginIntervention {
    background-color: var(--dark-blue);
}
#before_intervention button.backIntervention {
    background-color: dimgrey;
}
#before_intervention button.showAddClient {
    background-color: var(--blue);
}
#before_intervention button.editClient {
    background-color: #222;
}
#before_intervention button.editClient:not(.show),
#before_intervention button.backIntervention:not(.show),
#before_intervention button.beginIntervention:not(.show) {
    display: none;
}
#interventions-list .content button,
#before_intervention .resultsClients button {
    font-family: Roboto_normal, sans-serif;
    font-weight: 400;
    text-align: left;
    line-height: 1.1;
    padding: 0.5rem 1rem;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #777;
    background-color: #777;
    box-shadow: inset 0 0 4px rgb(255 255 255 / 69%);
    margin: 1px auto;
}
#before_intervention .resultsClients button b {
    font-size: 1.25rem;
}

#interventions-list .content button.selected,
#before_intervention .resultsClients button.selected,
#before_intervention .resultsClients button:focus {
    background: var(--orange);
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    transition: all 0.3s ease;
}

#login_form:not(.hide) ~ #main,
#before_intervention:not(.hide) ~ #main {
    display: none;
}

#main:not(.show) {
    margin-top: -50%;
    opacity: 0;
}

#main .content {
    flex:1;
}

#main .content,
#main .content-footer {
    padding: 0.75rem;
}
#main .pre_content {
    flex-direction: column;
    padding: 0.5rem 1rem;
    background-color: #eee;
    color: #333;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    line-height: 1.4;
}
#main .pre_content .intervenant span,
#main .pre_content .date_intervention span {
    display: inline-block;
}
#main .pre_content .intervenant span {
    font-weight: 700;
}
#main .pre_content .date_intervention span {
    font-weight: 400; font-style: italic;
}

#main .content .acf-field .acf-label {
    margin-bottom: 0;
}

#main .content label {
    line-height: 1.6;
}

#photos {
    border: 1px solid #bbb;
    padding: 5px;
    border-radius: 2px;
}

#list_photos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#list_photos .img-item {
    position: relative;
    /*width: clamp(102px, 32%, 232px);*/
    height: clamp(78px, 32dvw, 132px);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#list_photos img {
    width: auto;
    height: 100%;
    display: block;
}
#list_photos button {
    position: absolute;
    background-color: #c00;
}

#list_photos button:not(.show) {
    display: none;
}


#list_photos.contain_photos {
    border: 1px solid #bbb;
    padding: 2px 0;
    margin: 5px 0;
}

#list_photos-front img {
    border: 1px solid #ccc;
    margin: 3px;
}

#creation-client,
#edition-client,
#interventions-list,
#add-designation {
    position: fixed;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(33,33,33,0.69);
    transition: all 0.3s ease;
}
#creation-client button.hideAddClient,
#edition-client button.hideAddClient,
#interventions-list button.hideIntersList,
#add-designation button.hideAddItem {
    font-family: Roboto_normal, sans-serif;
    font-weight: 600;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    margin-left: auto;
    margin-bottom: auto;
}

#creation-client.hide,
#edition-client.hide,
#interventions-list.hide,
#add-designation.hide {
    top: -101%;
    opacity: 0;
}

#creation-client h2,
#interventions-list h2,
#edition-client h2 {
    font-size: clamp(18px, 1.5vw, 1.5em);
}

#creation-client > div,
#edition-client > div,
#interventions-list> div,
#add-designation > div {
    margin: auto;
    margin-bottom: 0;
    padding: 1rem 0.75rem;
    border-radius: 4px;
    border: 2px solid var(--blue);
    box-shadow: 0 0 4px rgba(0,0,0,0.69), inset 0 0 4px rgba(36,142,167,0.69);
    min-width: 300px;
    width: 88%;
    max-width: 420px;
    background-color: #fff;
    max-height: 87dvh;
    overflow: auto;
}
#login_form button,
#creation-client > button,
#edition-client > button,
#interventions-list > button,
#add-designation > button {
    background-color: var(--orange);
    margin: auto; 
    margin-top: .625rem;
    border-radius: 4px;
    box-shadow: inset 0 0 3px white, 0 0 4px rgba(0,0,0,0.69);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 2.25rem;
}

#edition-client .row-edit_fc_date {
    display: flex;
}

#edition-client .row-edit_fc_date {
    content: 'Date :';
    display: inline-flex;
}

#edition-client #edit_fc_date {
    border: 0;
    padding: 0;
    line-height: 1;
    font-size: 12px;
}


#add-designation .col_ref {
    margin-bottom: 10px;
}

#add-designation .hide,
#add-designation .col_ref:not(.show),
#add-designation .col_qty:not(.show) {
    display: none;
}


#add-designation .col_designation .acf-input-wrap {
    margin-bottom: 0.75rem;
}

#interventions-list h2,
#creation-client h2,
#edition-client h2,
#add-designation h2 {
    margin-top: 0;

    color: var(--orange);
}

#main .content > div:last-child {
    margin-bottom: 0.5rem;
}

#main .content-footer {
    text-align: center;
    padding-top: 0;
}
#main .content-footer button.endIntervention,
#main .content-footer button.showSignature {
    background-color: var(--blue);
    border: 1px solid var(--dark-blue);
    text-shadow: 0 0 2px rgba(33,33,33,0.8);
    padding: 0.75em 1.25em;
    font-family: Roboto_normal, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    box-shadow: inset 0 0 3px white;
    border-radius: 4px;
}
#main .content-footer button.showSignature:hover {
    background-color: var(--dark-blue);
}

#main .content-footer button.endIntervention {
  box-shadow: inset 0 0 3px white, 0 0 4px rgba(0,0,0,0.69);
  border: 1px solid #ad2a15;
  border-radius: 4px;
  background-color: var(--orange);
}
#main .content-footer button.endIntervention:hover {
    background-color: #ad2a15;
}

#main.isRecap #recap_designation button,
#main.isRecap button[data-action="showAddElement"],
#main.isRecap .content-footer button.endIntervention,
#main:not(.isRecap) .content-footer button.showSignature,
#main.isRecap.forLater .content-footer button.showSignature,
#main.isRecap:not(.forLater) .content-footer button.saveIntervention,
#main:not(.isRecap) .content-footer button.changeIntervention,
#main.isRecap.forLater .content-footer button.changeIntervention {
    display: none;
}

#main.isRecap #recap_designation .qty-item {
    margin-right: 3rem;
}


table#recap_designation {
    width: 100%;
}
#recap_designation {
    padding: 0.5rem 0 0;
}

#recap_designation .item {
    justify-content: space-between;    
}

#recap_designation .item > td,
#recap_designation .item > span {
    border: 1px solid #bbb;
    width: calc(50% - 1.5rem);
    padding: 0.5rem 0.75rem;
}
#recap_designation .item > span.qty-item {
    display: inline-flex;
    align-items: center;
}

#recap_designation .item td:not(:last-child),
#recap_designation .item span:first-child {
    border-right: none;
}
#recap_designation .item:not(:last-child) td,
#recap_designation .item:not(:last-child) span {
    border-bottom: none;
}

#recap_designation .item:last-child {
    margin-bottom: 0.75rem;
}

#recap_designation + button,
#main .content-footer button.saveIntervention,
#main .content-footer button.changeIntervention {
    background-color: #777;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    box-shadow: inset 0 0 2px white;
    border: 1px solid #777;
    font-size: 1rem;
}

#main .content-footer button.saveIntervention,
#main .content-footer button.changeIntervention {
    padding: 0.75em 1.25em;
    font-family: Roboto_normal, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}

#main .content-footer button.changeIntervention:hover,
#main .content-footer button.saveIntervention:hover {
    background-color: #555;
}

#recap_designation .item button,
#recap_designation + button span {
    margin-right: 0.5rem;
    padding: 0.25rem 0.375rem;
    font-weight: 700;
    background-color: var(--orange);
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #555;
    margin-left: -0.5rem;
}

#recap_designation .item button {
    margin: auto;
}

@media screen and (min-width: 30em) {
    #app .header {
        padding: 1rem 0.5rem;
    }
    #app .header img {
        margin: auto 0;
    }
    #main .pre_content {
        flex-direction: row;
    }
}

@media screen and (min-width: 48em) {

    #app .header .address {
        display: block;
    }
    #app .header .title {
        display: flex;
    }
    #app .header .title h1 {
        margin: auto 1rem auto 1rem;
    }
    #app .header img {
        margin: auto 1rem;
    }
    body {
        padding: 1.5rem 1rem;
    }
}


#invit_install {
    position: fixed;
    z-index: 5;
    bottom: -72px; left: 0;
    background-color: var(--blue);
    justify-content: space-between;
    width: 100%;
    padding: 0.25rem 1rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.69);
    display: flex;
    transition: all 0.2s ease;
}
/*#invit_install:not([hidden]) {
    bottom: 0px;
}
#invit_install:not([hidden]) ~ #app {
    margin-bottom: 50px;
}*/

#invit_install img {
    width: 48px; height: auto;
    margin: auto 0;
    box-shadow: 0 0 4px rgba(0,0,0,0.69);
}

#install_button {
    background-color: var(--orange);
    border-radius: 4px;
    border: 1px solid #f2bb5e;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 4px rgba(0,0,0,0.69);
    font-weight: 400;
    font-family: Roboto_normal, sans-serif;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}



/* ############################################################################################## */
/* ################### Loader  #################################################################################### */

body:before,
body:after {
    content: ''; display: block;
    position: fixed;
    z-index: 10000;

}
body:not(.loading):before,
body:not(.loading):after {
    display: none;
}
body:before {
    top: 0; bottom: 0; left: 0; right: 0;
    background-color: rgba(0,0,0,0.42);
    background-color: rgba(245,245,245,0.69);
}
body:after {
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    width: 72px; height: 72px;
    border: 0.5rem solid var(--blue);
    border-color: var(--blue) transparent var(--blue) transparent;
    border-radius: 50%;
    animation: lds-dual-ring 1.2s linear infinite;
    box-shadow: inset 0 0 4px rgb(33 33 33 / 69%), 0 0 4px rgba(33 33 33 / 69%);
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ############################################################################################## */
/* ############################################################################################## */

/* Avoid Chrome to see Safari hack */
@supports (-webkit-touch-callout: none) {
  body {
    /* The hack for Safari */
    min-height: -webkit-fill-available;
  }
}


/* ############################################################################################## */
/* ################### PRINT  #################################################################################### */

.single-fiche-intervention .acf-field {
    margin-bottom: 1rem;
}
.single-fiche-intervention .acf-input-wrap-style {
    color: #666;
    border: 1px solid #bbb;
    border-radius: 2px;
    display: block;
    width: 100%;
    height: 2.2em;
    padding: 4px 8px;
    margin: 0;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
}
.single-fiche-intervention img.signature {
    width: 280px;
    border: 1px solid #aaa;
}
.single-fiche-intervention #recap_designation .d-table {
    width: 100%; font-size: 0.875rem;
}
.single-fiche-intervention #recap_designation .designation-item {
    width: 50%;
}
.single-fiche-intervention .acf-input-wrap-style.textarea {
    height: auto; line-height: 1.2;
}

@media print {

    body #app {
        box-shadow: none;
    }

    body #app .header {
        display: table !important;
    }
    body #app .header img {
        max-width: 150px;
        margin-left: 7pt;
        margin-bottom: 0;
    }
    body #app .header .address {
        box-shadow:none;
        border-color: #aaa;
        padding: 0.375rem 0.75rem;
    }
    body #app .header .address,
    body #app .header img,
    body #app .header .title {
        display: table-cell;
        width: auto;
    }
    #app .header .address p {
        display: table-caption;
        font-size: 0.75rem;
        margin-bottom: 1px;
    }
    body #app .header .title {
        padding-right: 5px;
    }
    body #app .header .title h1 {
        display: block;
        margin: auto 0rem auto 0;
    }
    body #main .pre_content .infos-intervention {
        font-size: 8.4pt;
        line-height: 1.2;
    }
    body #app .acf-input-wrap-style.textarea {
        line-height: 1;
        padding-top: 5pt;
        padding-bottom: 5pt;
        font-size: 12px;
    }
    body #app #recap_designation {
        padding: 0;
    }
    body.single-fiche-intervention .acf-field {
        margin-bottom: 0.75rem;
    }
    body.single-fiche-intervention img.signature {
        width: 180px;
    }
    body #app #recap_designation .item > td {
        padding-top: 3pt;
        padding-bottom: 2pt;
        font-size: 12px;
    }
    body #app #recap_designation .item:first-child > td {
        font-size: 14px;
    }
    #main .content label {
        line-height: 1.1;
    }
}

/* ############################################################################################## */
/* ############################################################################################## */