@charset "UTF-8";

/* GLOBAL */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'garamond', sans-serif;
    color:#000000;
    touch-action: none; //pour le prevent default sur pull-to-refresh
}

h1,h2,h3,h4,h5,h6 {clear:both;margin:0 0 0 0;}
h1 {font-size:46px}
h2 {font-size:30px; text-transform:uppercase}
p  {margin:0 0 0 0;clear:both; font-size: 1.1em;}
.row .row {margin:0;}
a, a:link, a:visited {color:#000000 !important;}

/* Différents réglages si nécessaire */
.left {float:left;clear:left}
.right {float:right;clear:right}
.center {text-align:center !important; }
.centered {margin:0 auto;}
.pt10 {padding-top:10px !important;}
.pl20 {padding-left:20px !important;}
.pr20 {padding-right:20px !important;}
.mt10 {margin-top: 10px}
.mt20 {margin-top: 20px !important;}
.mt23 {margin-top: 23px !important;}
.mt30 {margin-top: 30px}
.mt60 {margin-top: 60px}
.mb10 {margin-bottom: 10px}
.mb20 {margin-bottom: 20px}
.mb60 {margin-bottom: 60px}
.ooo {clear:both;margin:20px 0 20px 0; text-align:center}
.clear {clear:both;}
.align-left {text-align: left !important;}


.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2,
.col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4,
.col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6,
.col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9,
.col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11,
.col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    padding-left: 0;
    padding-right: 0;
}

.error {
    box-shadow: 0 0 5px red;
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
    border: 1px solid red;
    -webkit-transition: all 0.30s ease-in-out;
    -moz-transition: all 0.30s ease-in-out;
    -ms-transition: all 0.30s ease-in-out;
    -o-transition: all 0.30s ease-in-out;
}

.error:focus {
    outline: none !important;
    border:1px solid red;
    box-shadow: 0 0 10px red !important;
}

/* Override Jquery Mobile */
.ui-btn-inline {
    margin: 0 0 20px 0;
}

.ui-mobile .ui-page {
    margin: 0;
}


.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page {
    position: relative;
    height: 100%;
    margin: auto;
}

.ui-page-theme-a .ui-slider-track .ui-btn-active, .ui-group-theme-a .ui-btn.ui-btn-active,
.ui-group-theme-a .ui-btn.ui-btn-active:hover, .ui-page-theme-a .ui-btn.ui-btn-active,
.ui-page-theme-a .ui-btn.ui-btn-active:hover {
    background-color: #1eadd9;
    text-shadow: none;
}

.ui-group-theme-a .ui-btn.ui-btn-active {
    text-shadow: none !important;
}

.ui-overlay-a, .ui-page-theme-a, .ui-page-theme-a .ui-panel-wrapper {
    background-color: #f4f4f5;
}

.ui-select .ui-btn select {
    color: #000000;
}

.ui-navbar li .ui-btn {
    font-size: 18px;
    font-weight: bold;
}

.ui-checkbox, .ui-radio {
    margin: 0;
}

.ui-listview li a {
    font-size: 16px;
    margin: 0;
    padding: 15px;
    background-color: #fff !important;
}

.ui-listview>.ui-li-static {
    padding: 0;
    background-color: #f6f6f6;
}

.ui-disabled, .ui-state-disabled, button[disabled], .ui-select .ui-btn.ui-state-disabled {
    opacity: 1;
}

.ui-navbar li:last-child .ui-btn {
    border-right-width: 1px;
    margin-right: 0;
}

.ui-btn, label.ui-btn, .ui-page-theme-a a, html .ui-bar-a a,
html .ui-body-a a, html body .ui-group-theme-a a, .ui-slider-switch .ui-slider-label {
    font-weight: normal;
}

body, input, select, textarea, button, .ui-btn, .ui-mobile label, div.ui-controlgroup-label,
.ui-slider-switch .ui-slider-label {
    font-family: Arial;
    font-size: 14px;
}

.ui-header, .ui-footer {
    border: none;
}

.ui-page-theme-a .ui-btn, html .ui-bar-a .ui-btn, html .ui-body-a .ui-btn, html body .ui-group-theme-a .ui-btn,
html head+body .ui-btn.ui-btn-a, .ui-page-theme-a .ui-btn:visited, html .ui-bar-a .ui-btn:visited, html .ui-body-a .ui-btn:visited,
html body .ui-group-theme-a .ui-btn:visited, html head+body .ui-btn.ui-btn-a:visited {
    background: #fff;
}

/* APP */
#login {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding: 50px;
}

#login .row {
    max-width: 500px;
    margin: 0 auto;
}

a.login-agenda {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 5px 5px 40px;
    z-index: 10000;
    background-color: #cb0813;
    text-shadow: none;
    color: #fff !important;
}

.ui-header .center {
    background: #fff;
}

.flex-nav {
    display: flex;
    width: 100%;
    justify-content: center;
}

.nav>li {
    min-width: 130px;
    text-align: center;
}

.navbar {
    background-color: #fff;
    margin-bottom: 0;
    border-radius: 0;
    border-left-width: 0;
    border-right-width: 0;
}

.btn-logout {
    top: 0;
    right: 10px;
    position: absolute !important;
}

.backoffice_container, .large_backoffice_container {
    margin: 0px auto;
    padding: 30px 0px 10px 0px;
    max-width: 1200px;
    position: relative;
    height: calc( 100% - 175px);
    overflow-x: hidden;
}

.large_backoffice_container {
    margin: 0px 5%;
    max-width: none;
}

#customers .ui-btn-inline {
    margin-bottom: 0;
}

#docs .ui-btn-inline, #error-code .ui-btn-inline, #directory .ui-btn-inline {
    margin-bottom: 7px;
}

#stock a.ui-btn, #docs li>a.ui-btn, #error-code li>a.ui-btn{
    padding-top: 15px;
    padding-bottom: 15px;
    background: #fff;
}

#directory li>a.ui-btn {
    padding: 15px;
    line-height: 26px;
}

.list-container {
    overflow: auto;
    height: 95%;
}
.row {
    margin-left:0;
    margin-right:0;
    margin-bottom: 20px;
}

.ui-mini {
    margin: 0;
}

/* Fiche client */
.step-title{
    padding-left: 20px;
    margin-left:-30px;
    margin-right:-30px;
    margin-bottom: 20px;
    color: #fff;
}

.step1, .step2, .step3, .step4 {
    padding: 0 20px;
    margin-bottom: 20px;
}

.step1 {
    border: 1px solid #c62828;
    background: #ffebee;
}

.step1 .step-title{
    background: #c62828;
    margin-bottom: 20px;
}

.step2 {
    border: 1px solid #03A9F4;
    background: #E1F5FE;
}

.step2 .step-title{
    background: #03A9F4;
}

.step3 {
    border: 1px solid #4CAF50;
    background: #F1F8E9;
}

.step3 .step-title{
    background: #4CAF50;
}

.step4 {
    border: 1px solid #9E9E9E;
    background: #E0E0E0;
}

.step4 .step-title{
    background: #9E9E9E;
}

#map {
    height: 672px !important;
}

textarea {
    height: auto !important;
    max-height: 560px;
    margin: 0 !important;
}

.textarea {
    margin-bottom: 0.5em !important;
}

.style1 {
    color: #FF0000;
    font-weight: bold;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style2 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 115px;
}

.picture-container  {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
}

.picture-container .center {
    padding: 5px;
    min-width: 25%;
}

.picture-container img {
    width: 100%;
    height: auto;
}

#deletePicture {
    top: 0;
    right: 0;
    position: absolute;
    margin: .5em 0 .5em 20px;
}

.btn-delete-img {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 26px !important;
    background: #cf5144 !important;
}

.pictureOverview {
    vertical-align: bottom;
    bottom: 0;
    position: absolute;
    right: 0;
    margin: .5em 0;
}

button.valide {
    border: 1px solid #BDBDBD;
    border-radius: 4px !important;
    box-shadow: 4px 4px 4px #BDBDBD;
    background-color: #dff0d8 !important;
    border-color: rgb(189,189,189) !important;
    padding: 6px 0;
    line-height: 25px;
    font-size: 18px;
    margin: 20px auto 0 auto;
    max-width: 350px !important;
}

a.delete {
    border: 1px solid #BDBDBD;
    border-radius: 4px !important;
    box-shadow: 4px 4px 4px #BDBDBD;
    background-color: #f2dede !important;
    border-color: rgb(189,189,189) !important;
    padding: 6px 0;
    line-height: 25px;
    font-size: 18px;
    margin: 20px auto 0 auto;
    max-width: 350px !important;
}

.border {
    border: 1px solid #f9f9f9;
    padding: 20px;
    margin-bottom: 20px !important;
    background-color: #fff;
}

mark, .mark {
    background-color: transparent;
}

.popphoto {
    max-height: 80vh;
    display: inline;
    max-width: 100%;
}

.pdf {
    position: absolute;
    left: -10px;
    top:50px;
}

.icon{
    display: inline-block;
    clear: both;
    position: relative !important;
    padding-bottom: 3px;
    margin-left: 8px;
}


/* PAINT */
#canvas {
    cursor:crosshair
}

.popupHeader {
    padding: 10px;
}

#imgSchema {
    width: auto;
    max-width: 100%;
    height: 500px;
    border: 1px solid #f5f5f5;
}

#draw_schema {
    text-align: center;
}

/* Entretien */
.separator {
    border-bottom: 1px #9e9e9e dotted;
}

/* Dépannage / Entretien */
#troubleshooting .ui-table, #maintenance .ui-table {
    background: #fff;
}

#troubleshooting .ui-table th, #troubleshooting .ui-table td, #maintenance .ui-table th, #maintenance .ui-table td {
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
}

#troubleshooting form, #troubleshooting .ui-btn {
    margin: 0;
}

.chrono>div, .done>div {
    display: inline-block;
    text-align: center;
    width: 45px;
}


.chrono>div>p, .done>div>p {
    display: block;
    margin-bottom: -5px;
}

.chrono>div>p {
    font-weight: 600;
    font-size: 1.2em;
}

.done>div>p, .done>div>span {
    color: gray;
}

.chrono>div>span, .done>div>span {
    font-style: italic;
    font-size: 0.7em;
}

textarea.ui-input-text.ui-textinput-autogrow {
    overflow: auto;
}

@media (max-width: 1200px){
    .pdf {
        left: 10px;
    }
}

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

@media (max-width: 820px){

    #login {
        width: 90%;
        padding: 10px;
    }

    #login.center {
        text-align: center;
    }

    #login h3 {
        margin-top: 20px;
    }

    .pl20, .pr20 {
        padding: 0 !important;
    }

    .logo {
        text-align: center;
    }

    textarea, #map {
        max-height: 40vh !important;
    }

    .navbar-nav {
        margin: 0 auto;
        display: block;
    }


    .navbar {
        padding:0;
    }


    li.btn-logout {
        padding: 0 0 0 15px;
        margin: 0;
        position: relative !important;
    }

    .center img {
        margin-left: 10px;
        margin-bottom: 0;
    }

    .picture-container .center img {
        margin: 0;
    }

    .center {
        text-align: left;
    }

    .ui-header>a {
        margin-top: 10px !important;
    }

    a.login-agenda {
        top: 70px;
    }

    .pdf img {
        max-height: 50px;
    }


    .backoffice_container, large_backoffice_container {
        height: calc( 100% - 120px);
        padding: 10px;
    }

    .step-title {
        margin-right: -20px;
        margin-left: -20px;
    }

    .step1, .step2, .step3, .step4 {

    }
}
@media (max-width: 560px){
    #troubleshooting .ui-table th, #troubleshooting .ui-table td {
        text-align: left;
    }

    #troubleshooting form {
        display: inline-block;
    }

    #troubleshooting .ui-table-reflow td .ui-table-cell-label,
    #troubleshooting .ui-table-reflow th .ui-table-cell-label {
        float: left;
    }
}

@media (max-width: 460px){


    .backoffice_container, large_backoffice_container {
        margin: 0 auto;
        padding: 10px;
        max-width: 1200px;
    }

    .ui-mini {
        margin: 0 0 10px 0;
    }


    #imgSchema {
        max-height: 60vh;
    }

    #canvas {
        max-width:100% !important;
    }
}

@media (min-width: 28em) {

    .ui-popup .ui-field-contain > label {
        float: left;
        width: 74%;
    }

}

