/*
 * Styles du démonstrateur Béluga.
 * Les bibliothèques (Bootstrap, jQuery UI, Font Awesome, tablesorter, Upload File) sont dans
 * css/vendor.min.css, chargée avant ce fichier : ce qui suit les ajuste.
 */

/* ==== Page de connexion et réglages communs ==== */

.btn-success, .btn-success:active, .btn-success:focus  {
    color: #fff;
    background-color: #18bc9c;
    border: none;
}
.btn-success:hover, .btn-success:active:focus {
    color: #fff;
    background-color: #18bc9c;
    border: none;
}

label {
    color: #2c3e50;
}

.form-control:focus {
    border-color: #18bc9c;
}

.banniere {
    font-weight: bold;
    padding: 15px;
    background: url('../img/banniere_login_v3.png') no-repeat center center;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;

    height: 300px;
    margin-top: 40px;
}
.titre {
    margin: 40px 0 40px 0;
    font-size: 20px;
}
.message_erreur_form {
    display: none;
    color: #FF0000;
}

/* ==== Mise en page générale ==== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
img {
    image-rendering: -webkit-optimize-contrast;
}
h1 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}
h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}
h3 {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}
body, .cadre, .modal-content {
    font-family: 'Lato', sans-serif !important;
}

/* Impression d'une demande (« Télécharger la demande ») : textes en entier, boutons masqués */
@media print {
    textarea {
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
    }
    .no-print {
        display: none;
    }
}
#btn_back_to_top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50px;
    display: none;
}

.hide {
    display: none;
}
.no_show_not_empty {
    display: none;
}

hr {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0;
    border: 3px solid black;
    border-top: 0;
    width: 20%;
}

label {
    display: inline;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

.cadre {
    padding: 6px 8px;
    background: #FFFFFF;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.fa-sync {
    color: #FFFFFF;
}

.message_erreur_form {
    display: none;
    color: #FF0000;
    padding-left: 10px;
    margin-bottom: 10px;
    margin-top: -1px;
}

.form-group {
    margin-bottom: 5px;
}

label {
    font-size: 13px;
    font-weight: normal;
}
.sous_titre_form {
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFFFF;
    background: #2c3e50;
    padding: 5px;
}
.control-label {
    text-align: right;
    margin-bottom: 0;
    padding-top: 11px;
    font-weight: bold;
}
.label_cb {
    display: contents;
}
.checkbox {
    padding-top: 0!important;
    margin-left: 35px;
}
.radio {
    padding-top: 0!important;
    margin-left: 35px;
}
.titre_cb {
    margin-top: 7px;
    font-weight: bold;
}
.ui-autocomplete {
    z-index: 2147483647!important;
}
.ui-widget {
    font-family: Lato,Arial,sans-serif;
    font-size: 14px;
}
input.tablesorter-filter {
    height: 30px;
}
[data-class="readonly"], [data-class="readonly"]:focus, [data-class="readonly"]:focus-visible {
    border: none;
}
.lien_menu {
    font-size: 15px;
}
.statistique {
    color: #B23B79;
}

/* ==== Accordéons ==== */

.no_underline:hover, .no_underline:focus {
    text-decoration: none;
    color: #0078A8;
}
.panel-group {
    margin-bottom: 5px;
}
.panel-heading {
    padding: 10px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background: #C31632;
}
.panel-heading:hover {
    background: #C31632;
}
.cadre h4 {
    margin: 0;
}
.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #FFFFFF!important;
    font-weight: bold;
}
.panel-default {
    border-color: #ddd;
}

.panel-group .panel+.panel {
    margin-top: 0;
}
.panel-title .fa-fw {
    color: #FFFFFF;
}

/* ==== Onglets ==== */

/* Tabs panel */
.tabbable-panel {
    border:1px solid #eee;
    padding: 10px;
}
/* Default mode */
.tabbable-line > .nav-tabs {
    border: none;
    margin: 0px;
}
.tabbable-line > .nav-tabs > li {
    margin-right: 2px;
}
.tabbable-line > .nav-tabs > li > a {
    border: 0;
    margin-right: 0;
    color: #737373;
}
.tabbable-line > .nav-tabs > li > a > i {
    color: #a6a6a6;
}
.tabbable-line > .nav-tabs > li.open, .tabbable-line > .nav-tabs > li:hover {
    border-bottom: 4px solid #ACBED0;
}
.tabbable-line > .nav-tabs > li.open > a, .tabbable-line > .nav-tabs > li:hover > a {
    border: 0;
    background: none !important;
    color: #333333;
}
.tabbable-line > .nav-tabs > li.open > a > i, .tabbable-line > .nav-tabs > li:hover > a > i {
    color: #a6a6a6;
}
.tabbable-line > .nav-tabs > li.open .dropdown-menu, .tabbable-line > .nav-tabs > li:hover .dropdown-menu {
    margin-top: 0px;
}
.tabbable-line > .nav-tabs > li.active {
    border-bottom: 4px solid #2c3e50;
    position: relative;
}
.tabbable-line > .nav-tabs > li.active > a {
    border: 0;
    color: #333333;
}
.tabbable-line > .nav-tabs > li.active > a > i {
    color: #404040;
}
.tabbable-line > .tab-content {
    margin-top: -3px;
    background-color: #fff;
    border: 0;
    border-top: 1px solid #eee;
    padding: 15px 0;
}
.nav-tabs {
    margin-bottom: 30px!important;
}
#tab_demande {
    font-size: 16px;
    font-weight: bold;
    background: #B23B79;
    color: #000000;
}
#tab_evaluation {
    font-size: 16px;
    font-weight: bold;
    background: #E94A5C;
    color: #000000;
}
#tab_document {
    font-size: 16px;
    font-weight: bold;
    background: #EA5C48;
    color: #000000;
}
#tab_suivi {
    font-size: 16px;
    font-weight: bold;
    background: #FF9933;
    color: #000000;
}

/* ==== Tableaux ==== */

table {
    background-color: transparent;
}
caption {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: left;
}
th {
    text-align: left;
}
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
    border-top: 0;
}
.table > tbody + tbody {
    border-top: 2px solid #ddd;
}
.table .table {
    background-color: #fff;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
    padding: 5px;
}
.table-bordered {
    border: 1px solid #ddd;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border: 1px solid #ddd;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
    border-bottom-width: 2px;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #e6e6e6;
}
.table-hover > tbody > tr:hover {
    background-color: #f5f5f5;
}
table col[class*="col-"] {
    position: static;
    display: table-column;
    float: none;
}
table td[class*="col-"],
table th[class*="col-"] {
    position: static;
    display: table-cell;
    float: none;
}
.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
    background-color: #f5f5f5;
}
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
    background-color: #e8e8e8;
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td,
.table > thead > tr.success > th,
.table > tbody > tr.success > th,
.table > tfoot > tr.success > th {
    background-color: #dff0d8;
}
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover,
.table-hover > tbody > tr.success:hover > td,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr.success:hover > th {
    background-color: #d0e9c6;
}
.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
    background-color: #d9edf7;
}
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover,
.table-hover > tbody > tr.info:hover > td,
.table-hover > tbody > tr:hover > .info,
.table-hover > tbody > tr.info:hover > th {
    background-color: #c4e3f3;
}
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th {
    background-color: #fcf8e3;
}
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover,
.table-hover > tbody > tr.warning:hover > td,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr.warning:hover > th {
    background-color: #faf2cc;
}
.table > thead > tr > td.danger,
.table > tbody > tr > td.danger,
.table > tfoot > tr > td.danger,
.table > thead > tr > th.danger,
.table > tbody > tr > th.danger,
.table > tfoot > tr > th.danger,
.table > thead > tr.danger > td,
.table > tbody > tr.danger > td,
.table > tfoot > tr.danger > td,
.table > thead > tr.danger > th,
.table > tbody > tr.danger > th,
.table > tfoot > tr.danger > th {
    background-color: #f2dede;
}
.table-hover > tbody > tr > td.danger:hover,
.table-hover > tbody > tr > th.danger:hover,
.table-hover > tbody > tr.danger:hover > td,
.table-hover > tbody > tr:hover > .danger,
.table-hover > tbody > tr.danger:hover > th {
    background-color: #ebcccc;
}
.table-responsive {
    min-height: .01%;
    overflow-x: auto;
}

/* En-têtes de colonnes fixes au défilement */
th, .tablesorter-filter-row td {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
}
th[scope=row] {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 1;
}
th[scope=row] {
    vertical-align: top;
    color: inherit;
    background-color: inherit;
    background: linear-gradient(90deg, transparent 0%, transparent calc(100% - .05em), #d6d6d6 calc(100% - .05em), #d6d6d6 100%);
}

table:nth-of-type(2) th:not([scope=row]):first-child {
    left: 0;
    z-index: 3;
    background: linear-gradient(90deg, #666 0%, #666 calc(100% - .05em), #ccc calc(100% - .05em), #ccc 100%);
}
/* Largeurs minimales qui rendent le défilement horizontal possible */
th[scope=row] + td {
    min-width: 24em;
}
th[scope=row] {
    min-width: 20em;
}
/* En-têtes de colonnes fixes au défilement */

@media screen and (max-width: 767px) {
    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #ddd;
    }
    .table-responsive > .table {
        margin-bottom: 0;
    }
    .table-responsive > .table > thead > tr > th,
    .table-responsive > .table > tbody > tr > th,
    .table-responsive > .table > tfoot > tr > th,
    .table-responsive > .table > thead > tr > td,
    .table-responsive > .table > tbody > tr > td,
    .table-responsive > .table > tfoot > tr > td {
        white-space: nowrap;
    }
    .table-responsive > .table-bordered {
        border: 0;
    }
    .table-responsive > .table-bordered > thead > tr > th:first-child,
    .table-responsive > .table-bordered > tbody > tr > th:first-child,
    .table-responsive > .table-bordered > tfoot > tr > th:first-child,
    .table-responsive > .table-bordered > thead > tr > td:first-child,
    .table-responsive > .table-bordered > tbody > tr > td:first-child,
    .table-responsive > .table-bordered > tfoot > tr > td:first-child {
        border-left: 0;
    }
    .table-responsive > .table-bordered > thead > tr > th:last-child,
    .table-responsive > .table-bordered > tbody > tr > th:last-child,
    .table-responsive > .table-bordered > tfoot > tr > th:last-child,
    .table-responsive > .table-bordered > thead > tr > td:last-child,
    .table-responsive > .table-bordered > tbody > tr > td:last-child,
    .table-responsive > .table-bordered > tfoot > tr > td:last-child {
        border-right: 0;
    }
    .table-responsive > .table-bordered > tbody > tr:last-child > th,
    .table-responsive > .table-bordered > tfoot > tr:last-child > th,
    .table-responsive > .table-bordered > tbody > tr:last-child > td,
    .table-responsive > .table-bordered > tfoot > tr:last-child > td {
        border-bottom: 0;
    }
}

/* ==== Couleurs de Bootstrap ==== */

h1, h2, h3, h4, h5, h6 {
    color: #B23B79;
}

/* BTN */
.btn, .btn:active, .btn:focus, .btn:hover, .btn:active:focus {
    border: none;
    outline: none;
}

/* BTN-SUCCESS */
.btn-success, .btn-success:active, .btn-success:focus, .btn:active:focus  {
    color: #FFFFFF;
    background-color: #4C6694;
}
.btn-success:hover, .btn-success:active:focus {
    color: #FFFFFF;
    background-color: #243E6C;
}

/* BTN-PRIMARY */
.btn-primary, .btn-primary:active, .btn-primary:focus  {
    color: #FFFFFF;
    background-color: #B23B79;
}
.btn-primary:hover, .btn-primary:active:focus {
    color: #FFFFFF;
    background-color: #8A1351;
}

/* NAVBAR */
.navbar-default {
    background-color: #B23B79;
}
/* NAVBAR a */
.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* NAVBAR BRAND */
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
    color: #FFFFFF;
}

/* SOUS-TITRE FORM */
.sous_titre_form {
    color: #FFFFFF;
    background: #B23B79;
}

#btn_back_to_top {
    background: #B23B79;
}

/* ALERT */
.alert-info {
    background-color: #B23B79;
    border-color: #B23B79;
    color: #ffffff;
}
.alert-warning {
    background-color: #EA5C48;
    border-color: #EA5C48;
    color: #ffffff;
}

.tabbable-line > .nav-tabs > li.active {
    border-bottom: 4px solid #B23B79;
    position: relative;
}

/* BTN UPLOAD FILE */
.ajax-file-upload {
    background-color: #4C6694;
    color: #ffffff;
    width: 250px;
    *margin-right: 15px;
    background-image: none;
    cursor: pointer;
    *display: inline-block;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.42857;
    margin-bottom: 15px;
    padding: 5px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.ajax-file-upload:hover {
    background-color: #243E6C;
    color: #ffffff;
}

.navbar-default .navbar-toggle {
    border-color: #FFFFFF;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: #B23B79;
}

/* ==== Dépôt de fichiers (Upload File) ==== */

/* Bouton « Charger le PDF » centré sous son libellé, là où il est seul sur sa ligne */
[data-page="connexion"] .ajax-file-upload,
[data-page="demandes"] .ajax-file-upload,
[data-page="profil"] .ajax-file-upload,
[data-page="utilisateur"] .ajax-file-upload {
    margin: 0 auto !important;
}

/* ==== Tableau de bord ==== */

/* Répartition des réponses, ajoutée par App.tableauDeBord à côté de chaque choix */
.statistique {
    margin-left: 6px;
    font-weight: bold;
}
.statistique::before {
    content: "→ ";
    font-weight: normal;
}

/* ==== Mode visiteur (include/visiteur.php) ==== */

/* Bandeau fixé en bas de page ; les boutons qui écriraient sont masqués.
   Simple confort : le serveur refuse de toute façon toute écriture d'un visiteur. */
body.mode-visiteur {
    padding-bottom: 44px;
}
#bandeau_visiteur {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    padding: 8px 16px;
    background: #fff8e1;
    border-top: 1px solid #ecd58f;
    color: #5c4400;
    font-size: 13px;
    text-align: center;
}
#bandeau_visiteur a {
    color: #004188;
    font-weight: bold;
    text-decoration: underline;
}
.mode-visiteur .submit_form,
.mode-visiteur #btn_save_commentaire_admin,
.mode-visiteur [id^="btn_telecharger"],
.mode-visiteur a.btn-success[data-toggle="modal"],
.mode-visiteur #btn_upload_devis,
.mode-visiteur #btn_upload_facture,
.mode-visiteur #btn_upload_bilan,
.mode-visiteur .ajax-upload-dragdrop {
    display: none !important;
}
/* ==== Classes posées par js/app.js ==== */

.msg_erreur_general {
    color: #e74c3c;
}
.choix_enregistre {
    color: #B23B79;
}
.depot_devis {
    margin: 10px 0;
}
/* Texte d'une zone de saisie, mis à sa place le temps de l'impression */
.texte_imprime {
    white-space: pre-wrap;
    border: 1px solid #ccc;
    padding: 4px;
}
/* Onglets : pas de cadre au clic de souris ; le cadre reste pour la navigation au clavier */
.nav-tabs > li > a:focus:not(:focus-visible) {
    outline: none;
}
