@media (max-width:991px) {
    body.poster {
        margin-top: 60vh;
    }
}

body.poster {
    background-attachment: fixed;
}

.top-5 {
    top: 5px;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.placeholder-text {
    color: #dcf5c1c7; /* Un gris clar */
}

.btn-sm.eliminar-columna,
.btn-sm.treure-guardia {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 30px;
    text-align: center;
}

.btn-sm.guardia-confirmada {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm.confirmar-guardia {
    background-color: #FFA500;
    border-color: #FFA500;
}

.btn-sm.guardia-confirmada {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-orange {
    background-color: #FFA500;
    border-color: #FFA500;
    color: #fff;
}

.btn-orange:hover {
    background-color: #FF8C00;
    border-color: #FF8C00;
    color: #fff;
}

/* ESTILS AFEGITS DES DE SUPERADMIN
    /* Estils base per tots els botons rodons */
    .btn-sm.eliminar-columna,
    .btn-sm.treure-guardia,
    .btn-sm.confirmar-guardia,
    .btn-sm.guardia-confirmada,
    .btn-sm.confirmar-totes-guardies,
    .btn-sm.correu-llegit,
    .btn-sm.editar-suplencia {
        border-radius: 50% !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Estils per les icones dins dels botons */
    .btn-sm.confirmar-guardia i,
    .btn-sm.guardia-confirmada i,
    .btn-sm.confirmar-totes-guardies i,
    .btn-orange i,
    .btn-success i {
        color: #FFFFFF !important;
        font-size: 14px;
    }

    /* Botons eliminar i treure */
    .btn-sm.eliminar-columna i,
    .btn-sm.treure-guardia i {
        font-size: 14px;
    }

    /* Botó treure guàrdia */
    .btn-sm.btn-danger.treure-guardia {
        background-color: #ffcccb;
        border-color: #ffcccb;
        color: #000;
    }

    .btn-sm.btn-danger.treure-guardia:hover {
        background-color: #ffa8a7;
        border-color: #ffa8a7;
        color: #FFF;
    }

    /* Botó confirmar guàrdia individual */
    .btn-sm.confirmar-guardia {
        background-color: #FFA500 !important;
        border-color: #FFA500 !important;
        color: #FFFFFF !important;
    }

    /* Botó guàrdia confirmada */
    .btn-sm.guardia-confirmada {
        background-color: #28a745 !important;
        border-color: #28a745 !important;
        color: #FFFFFF !important;
    }

    /* Estils específics pels botons de la capçalera de la taula */
    .captaula_confirmar {
        background-color: #FFA500 !important;
        /* Color taronja per defecte */
        border-color: #FFA500 !important;
        color: #FFFFFF !important;
    }

    .captaula_confirmar:disabled {
        background-color: #28a745 !important;
        /* Color verd quan està disabled */
        border-color: #28a745 !important;
        opacity: 1 !important;
        /* Mantenim l'opacitat al 100% */
    }

    /* Botó correu llegit */
    .btn-sm.correu-llegit {
        background-color: #99ccff;
        border-color: #4da6ff;
        color: #000;
    }

    .btn-sm.correu-llegit i.fa-envelope-open {
        font-size: 10px;
        line-height: 1;
        width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .btn-sm.correu-llegit i.fa-envelope {
        display: none;
    }

    /* Botó editar suplència */
    .btn-sm.editar-suplencia {
        background-color: #f0f0f0;
        border-color: #000000;
        color: #000000;
        margin-right: 2px;
    }

    /* Container dels botons */
    .button-container {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }

    .button-container .btn {
        flex: 1;
        max-width: 60px;
        min-width: 40px;
        padding: 6px 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .button-container a.btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .button-container .btn i {
        margin: 0 3px;
    }

    .btn-info {
        background-color: #e4c7ad !important;
        /* Color marró clar */
        border-color: #e4c7ad !important;
    }

    .btn-info:active,
    .btn-info:focus,
    .btn-info:hover {
        background-color: #e4c7ad !important;
        /* Mantenim el mateix color */
        border-color: #e4c7ad !important;
    }

    /* Per eliminar l'outline que apareix al fer focus */
    .btn-info:focus {
        box-shadow: none !important;
    }

    /* ESTILS AFEGITS DES D'USUARIS */
            .horari-table {
            table-layout: fixed;
            width: 100%;
        }

        .horari-table .hora-column {
            width: 70px;
            /* Ajusta aquest valor segons les teves necessitats */
        }

        .horari-table .dia-column {
            width: calc((100% - 70px) / 5);
            /* Distribueix l'espai restant equitativament entre els 5 dies */
        }

        .horari-table td {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 5px;
            /* Afegim un petit padding per millorar l'aspecte */
        }

        .horari-table .btn {
            padding: 0.1rem 0.3rem;
            font-size: 0.875rem;
        }

        /* Afegim un estil més específic per al camp del nom d'usuari */
        #nomusuari.placeholder-text {
            color: #808080 !important;
            /* Gris mitjà */
        }