body {
    background-color: #F0F1F3;
}

img#logo {
    width: 55px;
}

.mirror {
    transform: rotateX(180deg);
}

/**
 * CUSTOM CARD DASHBOARD
 */
a.card-custom, form.card-custom, .card-custom-stat {
    border: none !important;
    text-decoration: none;
    box-shadow: 1px 1px 2px black;
}

.card-custom-mission {
    text-decoration: none;
    box-shadow: 1px 1px 2px black;
}

.add-opacity {
    min-height: 70px;
    align-content: center;
}

.bg-mission-completed.reporting-customer {
    border-left: 25px solid #56c9a6;
    opacity: 0.5;
}

.bg-mission-completed .add-opacity {
    background-color: #56c9a6;
    opacity: 0.3;
    min-height: 70px;
    align-content: center;
}
.bg-mission-current {
    border-left: 25px solid #B297FB;
}

.card-custom-mission hr {
    margin-top: 7px;
    margin-bottom: 7px;
}

a.card-custom:hover {
    box-shadow: 2px 2px 3px black;
}

.card-custom .card-header {
    height: 60px;
    line-height: 60px;
}

.card-custom .card-body {
    height: 130px;
}

.card-custom .bg-primary, .nav-primary, .bg-blue {
    background-color: #74C0FC !important;
    color: black !important;
}

.btn.bg-blue:hover {
    background-color: #68ade5 !important;
}

.card-custom .bg-success, .nav-success, .bg-green {
    background-color: #63E6BE !important;
    color: black !important;
}

.btn.bg-green:hover {
    background-color: #56c9a6 !important;
}

.card-custom .bg-warning, .nav-warning, .bg-yellow {
    background-color: #FFD53A !important;
    color: black !important;
}

.btn.bg-yellow:hover {
    background-color: #deb932 !important;
}

.card-custom .bg-red, .nav-red, .bg-red {
    background-color: #FF8786 !important;
    color: black !important;
}

.btn.bg-red:hover {
    background-color: #e37877 !important;
}

.card-custom .bg-marron, .nav-marron, .bg-marron {
    background-color: #e89e6a !important;
    color: black !important;
}

.btn.bg-marron:hover {
    background-color: #e89e6a !important;
}

.text-marron {
    color: #e89e6a;
}

.card-custom .bg-purple, .nav-purple, .bg-purple {
    background-color: #B297FB !important;
    color: black !important;
}

.btn.bg-purple:hover {
    background-color: #a289e5 !important;
}

.bg-grey {
    background-color: #bebcbc;
}

/**
 * CUSTOM CARD SHOW APPARTMENT
 */
.card-show-custom {
    border: none !important;
    text-decoration: none;
    box-shadow: 1px 1px 2px black;
}

/**
 * REPORTING PAGE
 */
#reporting-page .progress {
    box-shadow: 1px 1px 2px black;
    border: 1px solid #6C757D;
}

/**
 * MOBILE
 */
@media (max-width: 640px) {
    * {
        box-sizing: border-box;
    }

    /* passer body (et tous les éléments de largeur fixe) en largeur automatique */
    body {
        width: auto;
        margin: 0;
        padding: 0;
        margin-bottom: 500px;
    }

    /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */
    img,
    table,
    td,
    blockquote,
    code,
    pre,
    textarea,
    input,
    iframe,
    object,
    embed,
    video {
        max-width: 100%;
    }

    /* conserver le ratio des images */
    img {
        height: auto;
    }
}

.custom-border-table {
    border-bottom: 1px solid #000000 !important;
}

.custom-table-hover:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

@media (max-width: 640px) {
    .custom-border-table.table-missions {
        border-bottom: 10px solid purple !important;
    }
}

/*
 * IMAGES
 */
.appart-img {
    height: 150px;
    min-width: 150px;
    object-fit: contain;
    box-shadow: 5px 5px 5px #888888;
    border: 1px solid #dddddd;
}

/*
 * IMAGES GALLERY
 */
.img-gallery-placeholder {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden; /* This ensures that the contents inside respect the border-radius */
}

.img-gallery-placeholder img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

@media (max-width: 640px) {
    .img-gallery-placeholder {
        margin-top: 10px;
    }

    .img-gallery-placeholder img {
        height: 150px;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.plus-sign {
    color: white;
    font-size: 30px;
    user-select: none;
}

.center-icon {
    color: white;
}


/*
 * FIX MODAL SCROLL
 */
.modal {
    overflow-y: auto;
}

/*
 * TAB MISSIONS ENDED
 */
.nav-link {
    color: black!important;
    font-weight: bold;
}
.nav-link.active {
    color: black!important;
    font-weight: bold;
}

/**
 * PROGRESS BAR
 */
.progress-card {
    position: relative;
}

.progress-span-card {
    position: absolute;
    top: 0;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: black;
}

.card-disabled {
    opacity: 0.5;
}

.card-disabled:hover a {
    color: red !important;
    cursor: not-allowed;
}

/**
 * TABLE
 */
.table-bordered {
    min-height: 450px;
}

.table-bordered.table-events {
    min-height: auto;
}

.custom-border-bottom-missions {
    border-bottom: 1px solid #dee2e6;
}

@media (max-width: 640px) {
    .custom-border-bottom-missions {
        border-bottom: 3px solid black;
    }
}

/**
 * DATATABLES
 */
.dt-paging-button.first, .dt-paging-button.last {
    display: none!important;
}

/**
 * SELECTIZE
 */
.selectize-dropdown-content .highlight {
    background-color: #ffff66 !important;
}

/**
 * PROGRESS BAR VALIDATE MISSION
 */
.progress-bar-validate-mission .progress-bar {
    height: 100%;
}

.progress-bar-validate-mission .progress-marker {
    position: absolute;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: black;
    transform: translateX(-50%);
}

.progress-bar-validate-mission .marker-text {
    min-width: 80px;
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: black;
}

.progress-bar-validate-mission .current-marker {
    position: absolute;
    bottom: -25px;
    transform: translateX(-50%);
    font-size: 1em;
}

/**
 * SPINNER
 */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    text-align: center;
}

.spinner-overlay .spinner-container {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-5%, -50%);
}

/**
 * SCREEN
 */
@media (min-width: 640px) {
    .spinner-overlay .spinner-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.spinner-overlay .spinner-text {
    color: white;
    margin-top: 10px;
}

/**
 * INPUT MISSION IMAGE
 */
.custom-file-input {
    position: relative;
    width: 100%;
    height: 180px;
    border: 2px dashed #cccccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-file-input:hover {
    border-color: #007bff;
    background-color: #f9f9f9;
}

/**
 * INPUT IMAGE CONTROL KEY
 */
.custom-file-input.input-image-control-key {
    height: 150px;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.file-label-content {
    font-size: 16px;
    color: #666;
    padding: 10px;
    pointer-events: none; /* Prevents the label text from blocking clicks */
}

.file-label-content p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

.card-image-key {
    max-width: 300px;
    height: 200px;
    object-fit: cover;
}

/**
 * FIX BAGUETTEBOX
 */
.baguetteBox-button {
    display: block!important;
}

/**
 * EVENT
 */
.card_event {
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

/**
 * REPORTING EVENT PAGE
 */
.container_reporting_events tr td {
    border-bottom: 1px solid lightgray !important;
}
.container_reporting_events .customer-row {
    background: black;
    color: white;
    font-weight: bold;
    padding-left: 5px;
}
.container_reporting_events .customer-row:hover span {
    color: white;
}

.container_reporting_events .customer-row:hover .btn-calendar-label{
    color: black !important;
}

@media (max-width: 992px) {
    .add-opacity-custom-event {
        min-height: 0;
    }
    .custom-table-hover:hover {
        background-color: transparent;
    }

    .table-bordered-event-custom>:not(caption)>* {
        border-width: 0;
    }
    .container_reporting_events tr td {
        border-bottom: none !important;
    }
}

@media (min-width: 993px) {
    .container_reporting_events .td-type {
        width: 120px!important;
        min-width: 120px!important;
        max-width: 120px!important;
    }

    .container_reporting_events .td-address {
        width: 500px!important;
        min-width: 500px!important;
        max-width: 500px!important;
    }

    .container_reporting_events .td-infos {
        width: 350px!important;
        min-width: 350px!important;
        max-width: 350px!important;
        word-wrap: break-word;
    }

    .container_reporting_events .td-dispos {
        width: 150px!important;
        min-width: 150px!important;
        max-width: 150px!important;
    }
}

/**
 * INFORMATIVE ALERT BOX
 */
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.blinking-alert {
    animation: blink 1.7s infinite;
}

.truncate-select + .selectize-control.single .selectize-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 1.75rem;
}

.truncate-select + .selectize-control.single .selectize-input .item {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.truncate-select + .selectize-control.single .selectize-input:after {
  right: 0.75rem;
}

footer {
    border-top: 1px solid #ddd;
}

.digital-touch-link {
    color: #212529;
    text-decoration: underline;
    transition: color 0.2s;
}

.digital-touch-link:hover {
    color: #977e11;
}

.btn-planning-link {
    background: none;
    border: none;
    padding: 0;
    color: #8660D8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-planning-link:hover,
.btn-planning-link:focus {
    color: #B297FB;
}

.mission-header,
.entrepreneur-header {
    background-color: rgba(255, 213, 58, 0.15);
}

.icon-box {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: rgb(255, 213, 58);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-mission-container {
    border: 1px solid rgb(255, 213, 58);
    border-radius: 8px;
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-mission-link {
    padding: 10px 16px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.btn-mission-link i {
    transition: transform 0.3s ease;
}

.btn-mission-container:hover {
    background-color: rgb(255, 213, 58);
}

/**
 * DISPONIBILITIES
 */
.dispo-card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

.dispo-card-header{
    padding: 0.750rem 1rem !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.dispo-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
}

.day-block:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.all-week-switch:checked,
.day-switch:checked {
    background-color: #212529;
    border-color: #212529;
}

.form-time:focus,
.day-switch:focus,
.all-week-switch:focus {
    border-color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(33,37,41,0.15);
}

.time-fields {
    padding-left: 2rem;
}

.time-input-text {
    border: none;
    background: transparent;
    font-weight: 500;
}
