.offlineMessage
{
    display: none;

    background-color: red;
    text-align: center;
    /*color: white;*/
    padding: 3px;
}

.offlineOnly
{
    display: none;
}
.offline .offlineMessage
{
    display: inherit;
}
.offline .offlineOnly
{
    display: inherit;
}

.offline #download_rapport{
    display: none;
}

.syncStatus
{
    position: fixed;
    top: 0px;
    right: 0px;
    background-color: white;
    border: 1px solid #ddd;
    display: none;
}

.downloadingIncidentsList .syncStatus, .downloadingShopsList .syncStatus, .downloadingDepositTypesList .syncStatus, .downloadingDepotsList .syncStatus, .downloadingRapportsList .syncStatus, .uploadingRapportsQueue .syncStatus
{
    display: block;
}

.progress-step {
    cursor: pointer;
    border-right: 1px solid #fff; /* petite séparation */
}
.progress-step:last-child {
    border-right: none;
}

form.form-data {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

form.form-data.current-form {
    display: block;
    opacity: 1;
}

#divPhotoBatiment, .divPhotoAnomalie{
    text-align: left;      
    margin-top: 10px;     
    padding: 5px;        
}

#divPhotoBatiment img, .divPhotoAnomalie img {
    display: block;      
    max-width: 200px;
    max-height: auto;  
    height: auto;
    margin-top: 10px;    
    object-fit: contain; 
}
.loaderPlaceHolder
{
    height: 20px;
    content: " ";
    background-image: url("../img/uploading.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.anomalie-header {
    background: #6c757d;
    color: white;
    padding: 10px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.anomalie-body {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

#rapportsTable th, #demandesDiagsTable th{
    background-color: #384481;
}





/*------------------------------------------------------Téléphone--------------------------*/
@media (max-width: 768px) {
    table#utilisateursTable thead {
        display: none;
    }
    table#utilisateursTable tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 0.5rem;
    }
    table#utilisateursTable td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem;
        border: none !important;
        border-bottom: 1px solid #dee2e6;
    }
    table#utilisateursTable td:last-child {
        border-bottom: none;
    }
    table#utilisateursTable td::before {
        content: attr(data-label);
        font-weight: bold;
    }

    /* Gestion liste des rapports tél */
    #rapportsTable thead {
        display: none;
    }

    #rapportsTable tr {
        display: block;
        margin-bottom: 1rem;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        cursor: pointer;
    }

    #rapportsTable tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    /* Cellules */
    #rapportsTable td {
        display: block;
        padding: 0.7rem 1rem;
        border: none;
        font-size: 0.95rem;
        color: #333;
    }

    /* Header : N° + Date */
    #rapportsTable td[data-label="N°"] {
        background: #384481;
        color: #fff;
        font-weight: bold;
        font-size: 1rem;
    }

    #rapportsTable td[data-label="Date de création"] {
        background: #f4f6fb;
        color: #384481;
        font-size: 0.9rem;
        border-bottom: 1px solid #e0e3ef;
    }

    /* Autres champs */
    #rapportsTable td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #009eda;
        margin-bottom: 0.2rem;
    }

    /* Personnalisation du label du numéro */
    #rapportsTable td[data-label="N°"]::before {
        content: "Rapport N°";
        display: inline;
        font-weight: 600;
        margin-right: 4px;
        color: #ffd300;
        font-size: 1rem;
    }

    #rapportsTable td[data-label="Date de création"]::before {
        content: none;
    }

    /* Gestion liste des demandes diags tel */
    #demandesDiagsTable thead {
        display: none;
    }

    #demandesDiagsTable tr {
        display: block;
        margin-bottom: 1rem;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        cursor: pointer;
    }

    #demandesDiagsTable tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    /* Cellules */
    #demandesDiagsTable td {
        display: block;
        padding: 0.7rem 1rem;
        border: none;
        font-size: 0.95rem;
        color: #333;
    }

    /* Header : N° + Date */
    #demandesDiagsTable td[data-label="N°"] {
        background: #384481;
        color: #fff;
        font-weight: bold;
        font-size: 1rem;
    }

    /* Autres champs */
    #demandesDiagsTable td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #009eda;
        margin-bottom: 0.2rem;
    }

    /* Personnalisation du label du numéro */
    #demandesDiagsTable td[data-label="N°"]::before {
        content: "Demande Diag N°";
        display: inline;
        font-weight: 600;
        margin-right: 4px;
        color: #ffd300;
        font-size: 1rem;
    }

    #resendMailBtn {
        margin-bottom: 1em;
    }
}

.signature {
    width:95%;
    margin:0 auto 20px auto;
    height:150px;
    background:#FFF;
    -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
/**/
#signui
{
    display: none;
}

#signui canvas
{
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: white;
}

#signui .action_bar
{
    width: 100%;
    position: fixed;
    bottom: 0px;
    height: 10%;
    min-height: 20px;
    left: 0px;
}

#signui .action_bar input
{
    height: 100%;
    width: 32%;
}

.landscape_message {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: #384481; /* bleu foncé charte */
    color: #fff; /* texte blanc */

    display: flex;
    align-items: center;    /* centre verticalement */
    justify-content: center; /* centre horizontalement */
    text-align: center;

    font-size: 2rem; /* texte très gros */
    font-weight: bold;
    padding: 20px;
    line-height: 1.5;
}



@media only screen and (orientation:portrait)
{
    .landscape_message
    {
        display: block;
    }
}
@media only screen and (orientation:landscape)
{
    .landscape_message
    {
        display: none;
    }
}

/*.landscape_message
{
        display: none;
}*/

/**/



#addDemandeDiagForm {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
}

/* ==== Carte principale ==== */
#addDemandeDiagForm .card {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==== En-tête ==== */
#addDemandeDiagForm .card-header {
    background-color: #384481;
    color: #ffd300;
    text-align: center;
    padding: 1.5rem;
}

#addDemandeDiagForm .card-header h2 {
    margin: 0;
    font-weight: 700;
}

/* ==== Corps ==== */
#addDemandeDiagForm .card-body {
    background-color: #f8f9fa;
    padding: 2rem;
}

#addDemandeDiagForm .section-title {
    color: #009eda;
    border-bottom: 2px solid #009eda;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==== Textes ==== */
#addDemandeDiagForm strong {
    color: #384481;
}

#addDemandeDiagForm span {
    color: #000;
}

/* ==== Pied de page ==== */
#addDemandeDiagForm .card-footer {
    background-color: #384481;
    text-align: center;
    padding: 1rem;
}

#addDemandeDiagForm .card-footer .btn {
    background-color: #ffd300;
    color: #384481;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#addDemandeDiagForm .card-footer .btn:hover {
    background-color: #009eda;
    color: #fff;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    #addDemandeDiagForm .card-body {
        padding: 1.25rem;
    }

    #addDemandeDiagForm .section-title {
        font-size: 1.1rem;
    }

    #addDemandeDiagForm .card-header h2 {
        font-size: 1.4rem;
    }
}
