@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400;700&display=swap');
body {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    display: block;
    margin: 8px;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: normal;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.6rem;
}

a {
    color:#2f85ae;
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
}

.sensedeco {
    text-decoration: none;
}

table {
    margin: 0 auto; /* Centra la taula horitzontalment */
    margin-bottom: 1.5rem;
}

 table.horariaula {
        border: 2px solid white;
        background-color: #f0f0f0;
        border-collapse: collapse;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    table.horariaula th {
        background-color: #708090;
        color: white;
        padding: 4px;
        border: 1px solid white;
        position: sticky;
        z-index: 5;
        font-family: "Bebas Neue", sans-serif;
        font-weight: normal;
    }

    table.horariaula a {
        color: white;
        text-decoration: none;
    }

    /* Fila 1 sticky (primera fila del thead) */
    table.horariaula thead tr:first-child th {
        top: 0;
        z-index: 10;
    }

    /* Fila 2 sticky (segona fila del thead) */
    table.horariaula thead tr:nth-child(2) th {
        top: 2rem; /* ajusta segons alçada real de la primera fila */
        z-index: 9;
    }

    table.horariaula td {
        border: 1px solid white;
        padding: 4px;
    }

    table.horariaula tr:nth-child(even) {
        background-color: #f8f8f8;
    }

    table.horariaula tr:nth-child(odd) {
        background-color: #f0f0f0;
    }

    table.horariaula td:first-child {
        background-color: #444;
        color: white;
        font-weight: bold;
        position: sticky;
        left: 0;
        z-index: 4;
    }

    table.horariaula th:first-child {
        position: sticky;
        left: 0;
        z-index: 11;
    }

.nodecoration {
    text-decoration: none;
    color: white;
}

.nodeco {
    text-decoration: none !important;
    color: black;
}

.thead-taulablanca th {
    font-size: 1.2rem; /* Mida de text com h3 */
    font-family: "Bebas Neue", sans-serif;
    font-weight: normal;
    text-align: center;
    padding: 0.4rem;
    border: 0.1rem solid white;
}

.pestanya {
    display: block;
    width: 100%;
}

.pestanyamenys {
    display: flex; /* Permet col·locar elements fills un al costat de l'altre */
    gap: 1rem; /* Espai entre elements */
    width: 100%;
    align-items: flex-start; /* Per alinear els elements verticalment */
}

.text.p33 {
    flex: 1 1 31%;
}

.pestanya.p50 {
    width: 48%;
}

.pestanya.p20 {
    width: 18%;
}

.pestanya.p100 {
    width: 100%;
}

/* Estil per al títol */
.titolpestanya {
    display: inline-block;
    padding: 1rem 1rem;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    border-radius: 0;
    white-space: nowrap;
    margin-bottom: 0;
    box-sizing: border-box;
    text-align: left;
}

/* Estil per al text */
.contingutpestanya {
    padding: 1.5rem;
    border: 0.3rem solid;
    line-height: 1.4;
    background-color: white;
    border-radius: 0;
    margin-top: 0;
    text-align: left;
    overflow-x: auto !important; /* Activa el scroll horitzontal */
    height: 40rem;
    align-content: center;
}

.contingutpestanya-messages {
    padding: 1.5rem;
    border: 0.3rem solid;
    line-height: 1.4;
    background-color: white;
    border-radius: 0;
    margin-top: 0;
    text-align: left;
}


fieldset {
    border: 0.3rem solid;
    width: 100%;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

fieldset a{
    text-decoration: none !important;
    color: grey !important;
}
/* Rosa */
.text-rosa {
    color: #e55381;
}

.fons-rosa {
    background-color: #e55381 !important;
}

.fons-rosa:before {
    color: #e55381 !important;
    background-color: transparent;
}

.vora-rosa {
    border-color: #e55381;
}

/* Blaucel */
.text-blaucel {
    color: #8ec3c3;
}
.fons-blaucel {
    background-color: #8ec3c3;
}
.vora-blaucel {
    border-color: #8ec3c3;
}

/* Lila */
.text-lila {
    color: #b2abbe;
}
.fons-lila {
    background-color: #b2abbe;
}
.vora-lila {
    border-color: #b2abbe;
}

/* Taronja */
.text-taronja {
    color: #feb20e;
}
.fons-taronja {
    background-color: #feb20e;
}
.vora-taronja {
    border-color: #feb20e !important;
}

/* Blaumari */
.text-blaumari {
    color: #708090;
}
.fons-blaumari {
    background-color: #708090 !important;
}
.vora-blaumari {
    border-color: #708090 !important;
}

/* Estilització del dropdown */
.dropdown-blaumari {
    font-family: 'Roboto Condensed', sans-serif;
    border: 4px solid #708090; /* Vora de 2px de color blanc */
    border-color: #708090;
    cursor: pointer; /* Canvia el cursor a mà */
}

.diesestat {
    font-size: 1em;
    padding: 0.5em;
    font-family: 'Roboto Condensed', sans-serif;
    width: 2.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border: 4px solid #708090; /* Vora de 2px de color blanc */
    border-color: #708090;
    cursor: pointer; /* Canvia el cursor a mà */
}

.dropdown-taronja {
    padding: 0.5em;
    font-family: 'Roboto Condensed', sans-serif;
    border: 4px solid #feb20e; /* Vora de 2px de color blanc */
    border-color: #feb20e;
    cursor: pointer; /* Canvia el cursor a mà */
}

.dropdown-blaucel {
    padding: 0.5em;
    font-family: 'Roboto Condensed', sans-serif;
    border: 4px solid #8ec3c3; /* Vora de 2px de color blanc */
    border-color: #8ec3c3;
    cursor: pointer; /* Canvia el cursor a mà */
}

.dropdown-lila {
    padding: 0.5em;
    font-family: 'Roboto Condensed', sans-serif;
    border: 4px solid #b2abbe; /* Vora de 2px de color blanc */
    border-color: #b2abbe;
    cursor: pointer; /* Canvia el cursor a mà */
}

.dropdown-verd {
    padding: 0.5em;
    font-family: 'Roboto Condensed', sans-serif;
    border: 4px solid #aed581; /* Vora de 2px de color blanc */
    border-color: #aed581;
    cursor: pointer; /* Canvia el cursor a mà */
}

.separator {
    width: 0.2rem;
    margin: 0 1rem; /* Espaiar el separador dels botons */
}

.esquerrath {
    text-align: left !important;
    padding-left: 0.5rem !important;
}

.dalt {
    vertical-align: top !important;
}

/* Verd */
.text-verd {
    color: #aed581;
}
.fons-verd {
    background-color: #aed581 !important;
}
.vora-verd {
    border-color: #aed581;
}

/* Gris */
.text-gris {
    color: #bfbfbf;
}
.fons-gris {
    background-color: #bfbfbf;
}
.vora-gris {
    border-color: #bfbfbf;
}

/* Ocre */
.text-ocre {
    color: #d8baa9;
}
.fons-ocre {
    background-color: #d8baa9;
}
.vora-ocre {
    border-color: #d8baa9;
}

/* Grisclar */
.text-grisclar {
    color: #cfcfcf;
}
.fons-grisclar {
    background-color: #cfcfcf;
}
.vora-grisclar {
    border-color: #cfcfcf;
}

/* Blanc */
.text-blanc {
    color: #ffffff;
}
.fons-blanc {
    background-color: #ffffff !important;
}
.vora-blanc {
    border-color: #ffffff;
}

/* Negre */
.text-negre {
    color: #0e1111;
}
.fons-negre {
    background-color: #0e1111;
}
.vora-negre {
    border-color: #0e1111;
}


.taula-columnar.rosa th {
    background-color: #e55381;
}

.taula-columnar.rosa td:nth-child(even) {
    background-color: #f8b8c9; /* Dos tons més pujat que abans */
}

.taula-columnar.rosa td:nth-child(odd) {
    background-color: #fbd9e3;
}

.taula-columnar.blaucel th {
    background-color: #8ec3c3;
}

.taula-columnar.blaucel td:nth-child(even) {
    background-color: #c7e8e8; /* Dos tons més pujat que abans */
}

.taula-columnar.blaucel td:nth-child(odd) {
    background-color: #e4f4f4;
}

.taula-columnar.lila th {
    background-color: #b2abbe;
}

.taula-columnar.lila td:nth-child(even) {
    background-color: #e2dcea; /* Dos tons més pujat que abans */
}

.taula-columnar.lila td:nth-child(odd) {
    background-color: #f1edf6;
}

.taula-columnar.taronja th {
    background-color: #feb20e;
}

.taula-columnar.taronja td:nth-child(even) {
    background-color: #ffefdb; /* Dos tons més pujat que abans */
}

.taula-columnar.taronja td:nth-child(odd) {
    background-color: #ffdbab;
}

.taula-columnar.blaumari th {
    background-color: #708090;
}

.taula-columnar.blaumari td:nth-child(even) {
    background-color: #c8d3d7; /* Dos tons més pujat que abans */
}

.taula-columnar.blaumari td:nth-child(odd) {
    background-color: #e8ebed;
}

.taula-columnar.verd th {
    background-color: #aed581;
}

.taula-columnar.verd td:nth-child(even) {
    background-color: #edf7e7; /* Dos tons més pujat que abans */
}

.taula-columnar.verd td:nth-child(odd) {
    background-color: #d3e8b8;
}

.taula-columnar.gris th {
    background-color: #bfbfbf;
}

.taula-columnar.gris td:nth-child(even) {
    background-color: #d8d8d8; /* Dos tons més pujat que abans */
}

.taula-columnar.gris td:nth-child(odd) {
    background-color: #f2f2f2;
}

.taula-columnar.ocre th {
    background-color: #d8baa9;
}

.taula-columnar.ocre td:nth-child(even) {
    background-color: #dfcfc5; /* Dos tons més pujat que abans */
}

.taula-columnar.ocre td:nth-child(odd) {
    background-color: #f2e5df;
}

.taula-columnar.grisclar th {
    background-color: #cfcfcf;
}

.taula-columnar.grisclar td:nth-child(even) {
    background-color: #e6e6e6; /* Dos tons més pujat que abans */
}

.taula-columnar.grisclar td:nth-child(odd) {
    background-color: #f8f8f8;
}

.taula-columnar.negre th {
    background-color: #0e1111;
}

.taula-columnar.negre td:nth-child(even) {
    background-color: #d8d8d8; /* Dos tons més pujat que abans */
}

.taula-columnar.negre td:nth-child(odd) {
    background-color: #f5f5f5;
}
.taula-filar.rosa th {
    background-color: #e55381;
}

.taula-filar.rosa tr:nth-child(even) {
    background-color: #f8b8c9; /* Dos tons més pujat */
}

.taula-filar.rosa tr:nth-child(odd) {
    background-color: #fbd9e3; /* Lleugerament més pujat */
}

.taula-filar.blaucel th {
    background-color: #8ec3c3;
}

.taula-filar.blaucel tr:nth-child(even) {
    background-color: #c7e8e8; /* Dos tons més pujat */
}

.taula-filar.blaucel tr:nth-child(odd) {
    background-color: #e4f4f4; /* Lleugerament més pujat */
}

.taula-filar.lila th {
    background-color: #b2abbe;
}

.taula-filar.lila tr:nth-child(even) {
    background-color: #e2dcea; /* Dos tons més pujat */
}

.taula-filar.lila tr:nth-child(odd) {
    background-color: #f1edf6; /* Lleugerament més pujat */
}

.taula-filar.taronja th {
    background-color: #feb20e;
}

.taula-filar.taronja tr:nth-child(even) {
    background-color: #ffdbab; /* Dos tons més pujat */
}

.taula-filar.taronja tr:nth-child(odd) {
    background-color: #ffefdb; /* Lleugerament més pujat */
}

.taula-filar.blaumari th {
    background-color: #708090;
}

.taula-filar.blaumari tr:nth-child(even) {
    background-color: #c8d3d7; /* Dos tons més pujat */
}

.taula-filar.blaumari tr:nth-child(odd) {
    background-color: #e8ebed; /* Lleugerament més pujat */
}

.taula-filar.verd th {
    background-color: #aed581;
}

.taula-filar.verd tr:nth-child(even) {
    background-color: #d3e8b8; /* Dos tons més pujat */
}

.taula-filar.verd tr:nth-child(odd) {
    background-color: #edf7e7; /* Lleugerament més pujat */
}

.taula-filar.gris th {
    background-color: #bfbfbf;
}

.taula-filar.gris tr:nth-child(even) {
    background-color: #d8d8d8; /* Dos tons més pujat */
}

.taula-filar.gris tr:nth-child(odd) {
    background-color: #f2f2f2; /* Lleugerament més pujat */
}

.taula-filar.ocre th {
    background-color: #d8baa9;
}

.taula-filar.ocre tr:nth-child(even) {
    background-color: #dfcfc5; /* Dos tons més pujat */
}

.taula-filar.ocre tr:nth-child(odd) {
    background-color: #f2e5df; /* Lleugerament més pujat */
}

.taula-filar.grisclar th {
    background-color: #cfcfcf;
}

.taula-filar.grisclar tr:nth-child(even) {
    background-color: #e6e6e6; /* Dos tons més pujat */
}

.taula-filar.grisclar tr:nth-child(odd) {
    background-color: #f8f8f8; /* Lleugerament més pujat */
}

.taula-filar.negre th {
    background-color: #0e1111;
}

.taula-filar.negre tr:nth-child(even) {
    background-color: #d8d8d8; /* Dos tons més pujat */
}

.taula-filar.negre tr:nth-child(odd) {
    background-color: #f5f5f5; /* Lleugerament més pujat */
}

.taula-assistencia th:nth-child(1) {
    background-color: #aed581;
}

.taula-assistencia th:nth-child(2) {
    background-color: #e55381;
}

.taula-assistencia th:nth-child(3) {
    background-color: #bfbfbf;
}

.taula-assistencia th:nth-child(4) {
    background-color: #feb20e;
}

.taula-assistencia tr:nth-child(even) td:nth-child(1) {
    background-color: #d3e8b8;
}

.taula-assistencia tr:nth-child(odd) td:nth-child(1) {
    background-color: #edf7e7;
}

.taula-assistencia tr:nth-child(even) td:nth-child(2) {
    background-color: #f8b8c9;
}

.taula-assistencia tr:nth-child(odd) td:nth-child(2) {
    background-color: #fbd9e3;
}

.taula-assistencia tr:nth-child(even) td:nth-child(3) {
    background-color: #d8d8d8;
}

.taula-assistencia tr:nth-child(odd) td:nth-child(3) {
    background-color: #f2f2f2;
}

.taula-assistencia tr:nth-child(even) td:nth-child(4) {
    background-color: #ffdbab;
}

.taula-assistencia tr:nth-child(odd) td:nth-child(4) {
    background-color: #ffefdb;
}

/* Per a les columnes a partir de la cinquena (repetint verd) */
.taula-assistencia th:nth-child(n+5) {
    background-color: #aed581;
}

.taula-assistencia tr:nth-child(even) td:nth-child(n+5) {
    background-color: #d3e8b8;
}

.taula-assistencia tr:nth-child(odd) td:nth-child(n+5) {
    background-color: #edf7e7;
}


    .bafarada {
        position: relative;
        padding: 0.5rem;
        display: inline-block;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        color: white;
        font-weight: bold;
        animation: tremolor 0.5s ease-in-out; /* Aplica l'animació */
    }

    /* Triangle a la part superior */
    .bafarada::before {
        content: "";
        position: absolute;
        top: -0.65rem; /* Situat just a sobre del rectangle */
        left: 1rem; /* Desplaçament des de l'extrem esquerre */
        width: 0;
        height: 0rem;
        border-left: 0.7rem solid transparent; /* Costat esquerre transparent */
        border-right: 0.7rem solid transparent; /* Costat dret transparent */
        border-bottom: 0.7rem solid; /* Triangle apuntant cap avall */
    }

 .error-radio {
        position: absolute;
        display: inline-block;
        z-index: 1;
    }

    .error-message {
        position: absolute;
        padding: 0.5rem;
        display: inline-block;
        margin-top: 1rem;
        margin-bottom: 0.2rem;
        color: white;
        font-weight: bold;
        animation: tremolor 0.5s ease-in-out; /* Aplica l'animació */
        background-color: #e55381;
        z-index: 200;
    }

input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: auto;
    height: auto;
}

input[type="radio"]:not(.no-hide) {
    opacity: 100;
    position: absolute;
    width: auto;
    height: auto;
}

.radio-col-B, .radio-col-J, .radio-col-N, .mark-all, .radio-col-2, .radio-col-1_5, .radio-col-1, .radio-col-0_5 {
    opacity: 100 !important;
    position: unset !important;
    width: auto;
    height: auto;
}

input.group-checkbox-hidden {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0; /* Assegura que sigui visible */
}

.admissio {
    opacity: unset !important;  /* Restableix l'opacitat */
    position: relative !important;  /* Canvia la posició a relativa */
    width: auto !important;  /* Ajusta l'amplada a la mida del contingut */
    height: auto !important;  /* Ajusta l'altura a la mida del contingut */
}



    /* Triangle a la part superior */
    .error-message::before {
        content: "";
        position: absolute;
        top: -0.65rem; /* Situat just a sobre del rectangle */
        left: 1rem; /* Desplaçament des de l'extrem esquerre */
        width: 0;
        height: 0rem;
        border-left: 0.7rem solid transparent; /* Costat esquerre transparent */
        border-right: 0.7rem solid transparent; /* Costat dret transparent */
        border-bottom: 0.7rem solid; /* Triangle apuntant cap avall */
        color: #e55381;
    }

    /* Animació de tremolor */
    @keyframes tremolor {
        0% { transform: translateX(0); }
        25% { transform: translateX(-2px); }
        50% { transform: translateX(2px); }
        75% { transform: translateX(-2px); }
        100% { transform: translateX(0); }
    }

.marge_extra_esquerra {
    border-left: 8px solid #ffffff;
}

.marge_extra_dreta {
    border-right: 8px solid #ffffff !important;
}


.vertikal {
     writing-mode: vertical-lr; /* Escriu el text de dalt a baix */
    transform: rotate(-180deg); /* Gira 90° anticlockwise */
    text-align: center; /* Centra el text horitzontalment dins del th */
    vertical-align: middle; /* Centra el text verticalment dins del th */
    white-space: normal; /* Permet trencar línies */
    word-wrap: break-word; /* Permet el trencament automàtic de línies */
    line-height: 1.5; /* Espai entre línies */
    width: 50px; /* Amplada del `th` */
    height: auto; /* Ajusta l'alçada segons el contingut */
    padding: 10px; /* Espai dins del `th` */
}

/* Contenidor que permet el scroll horitzontal */
.taula-fixa-scroll-wrapper {
    overflow-x: auto !important; /* Activa el scroll horitzontal */
    position: relative !important;
    height: 25rem;
}

/* Taula amb format correcte */
.taula-fixa-scroll {
    width: max-content !important; /* Permet que la taula creixi segons el contingut */
    border-collapse: collapse !important;
    table-layout: auto !important;
    z-index: 104;
}

/* Fixar la capçalera de la taula */
.taula-fixa-scroll thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important; /* Més alt que les files del tbody */
     /* Color de fons per la capçalera */
}


/* Fixar la primera columna (Alumne/a) */
.taula-fixa-scroll th:first-child,
.taula-fixa-scroll td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 6 !important; /* Ha de ser més alt que la capçalera */
    background-color: inherit !important; /* Manté el fons blanc */
    min-width: 200px; /* Ajusta segons necessitats */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Ombra per destacar */
}

/* Fixar la última columna (Accions) */
.taula-fixa-scroll th:last-child,
.taula-fixa-scroll td:last-child {
    position: sticky !important;
    right: 0 !important;
    z-index: 6 !important; /* Mateix nivell que la primera columna */
    background-color: inherit !important; /* Manté el fons blanc */
    min-width: 150px !important; /* Ajusta segons necessitats */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); /* Ombra per destacar */
}

/* Assegurar que les files del tbody no es sobreposin a la capçalera */
.taula-fixa-scroll tbody tr {
    position: relative;
    z-index: 1; /* Inferior a thead i sticky columns */
}

/* Estil bàsic per les cel·les */
.taula-fixa-scroll td {
    min-height: 40px; /* Ajusta segons sigui necessari */
    padding: 10px;
}



.taula-pendents {
    width: max-content !important;
    border-collapse: collapse !important;
    table-layout: fixed !important; /* Evita salts d'amplada */
    z-index: 104;
}

/* Fixar la capçalera de la taula */
.taula-pendents thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background-color: white;
    width: 200px; /* Ajusta segons sigui necessari */
}

/* Fixar les primeres 4 columnes */
.taula-pendents th:nth-child(-n+4),
.taula-pendents td:nth-child(-n+4) {
    position: sticky !important;
    z-index: 9 !important;
    background-color: inherit !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Assignar un left correcte per a cada columna fixa */
.taula-pendents th:nth-child(1),
.taula-pendents td:nth-child(1) {
    left: 0px !important;
    width: 150px;
}

.taula-pendents th:nth-child(2),
.taula-pendents td:nth-child(2) {
    left: 150px !important;
    width: 120px;
}

.taula-pendents th:nth-child(3),
.taula-pendents td:nth-child(3) {
    left: 270px !important;
    width: 250px;
}

.taula-pendents th:nth-child(4),
.taula-pendents td:nth-child(4) {
    left: 520px !important;
    width: 100px;
}

/* Ajustem la cinquena columna perquè es vegi alineada correctament */
.taula-pendents th:nth-child(5),
.taula-pendents td:nth-child(5) {
    left: 620px !important;
    width: 180px;
}

/* Evitar que les columnes següents es desplacin incorrectament */
.taula-pendents th,
.taula-pendents td {
    white-space: nowrap;
    text-align: center;
}




.desplegables {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 4rem;
    padding: 0 1rem;
    box-sizing: border-box;

}

.desplegables-inputs {
    display: flex !important;
    gap: 0.5rem; /* Espai entre botons */
}





.graph {
    border-collapse: collapse; /* Elimina els espais entre les cel·les */
    font-size: 0.7rem; /* Mida de la font */
    width: auto !important; /* Amplada basada en el contingut */
    table-layout: fixed; /* Força l'ús d'amplades fixes a les columnes */
    min-width: 25%;
}

.graph th {
    font-family: "Bebas Neue", sans-serif;
    font-weight: normal;
    color: #ffffff;
    border: 4px solid #ffffff;
    text-align: center;
    padding: 0.5rem;
    background-color: #708090;
    font-size: 1.5rem !important;
} 

.graph td {
    margin: 0 !important; /* Elimina el marge */
    border-left: 1px solid #ffffff; /* Vora blanca prima a l'esquerra */
    border-right: 1px solid #ffffff; /* Vora blanca prima a la dreta */
    text-align: center; /* Centra el contingut */
    width: 0.7rem !important; /* Amplada fixa de cada columna */
    line-height: 0.5rem !important; /* Redueix l'altura de les línies */
    word-wrap: break-word; /* Força el text llarg a trencar-se en diverses línies */
}

.graph tbody tr {
    border: none; /* Elimina la vora entre les files */
}

.graph .fons-rosa {
    background-color: #fad1df; /* Rosa */
}

.graph .fons-taronja {
    background-color: #ffe4bf; /* Taronja */
}

.graph .fons-verd {
    background-color: #e6f1d1; /* Verd */
}

.graph .dia {
    background-color: #8ec3c3;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-top: 4px solid #ffffff;
    font-weight: bold;
    padding: 0.3rem !important;
}

.graph .dia.first-of-month {
    border-left: 4px solid #ffffff;
}

.graph .dia.last-of-month {
    border-right: 4px solid #ffffff;
}

.graph .mesos {
    background-color: #708090;
    color: #ffffff;
    font-weight: bold;
}

.graph .mes {
    border: 4px solid #ffffff;
    padding: 0.3rem !important;
}

.graph .total {
    padding: 0.3rem !important;
}

.graph .barra {
    padding: 0.2rem !important;
}

.graph .grupple {
    border-bottom: 2px solid grey;
}

.graph .mitjana {
    border-bottom: 2px solid #8ca664;
}



.boto {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
}
.boto:hover {
    transform: scale(1.15); /* Augmenta un 15% la mida */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Afegeix una ombra subtil */
}




.reclam-container {
    width: 100%;
    height: 2.5rem;
    display: flex;
    align-items: center; /* Centra verticalment la imatge i el text *//* Espai entre la imatge i el text */
    cursor: default;
}

.reclam-container img {
    pointer-events: none; /* Evita que les imatges siguin clicables */
}

.reclam-container:hover {
    background-color: inherit; /* Evita canvis d'estil en passar el cursor */
    transition: none; /* Elimina les transicions en hover */
}

.pendent {
    width: 6.2rem;
}

.taulapendent {
    height: 100%;
}

.taulapendent tr {
    height: 100%;
}
.pendent-multiplecontainer {
    display: flex;
    flex-direction: row;
}

.pendent-maxcontainer {
    margin: 0.2rem;
}

.pendent-container {
    width: 100%;
    display: flex;
    gap: 0.2rem;
    height: 2.5rem;
    margin-bottom: 0.2rem;
}

.icon-container {
    width: 2.5rem;
    display: flex;
    gap: 0.2rem;
    height: 2.5rem;
    margin: auto;
}

.pendentreclam-container {
    display: flex;
    gap: 0.2rem;
    flex-direction: column; /* Disposa els botons verticalment */
}

.icona {
    padding: 0.5rem 0.5rem;
    pointer: default;
}

.iconamax {
    padding: 0.5rem 0.5rem;
    pointer: default;
    width: 100%;
}

.tic {
    height: 5.2rem;
    width: 100%;
    text-align: center;
    align-items: center;
    vertical-align: middle;
    display: flex;         /* Activa Flexbox */
    justify-content: center; /* Centra horitzontalment */
    align-items: center;    /* Centra verticalment */
}

/* Classe genèrica per a columnes */
.divcols {
    display: flex; /* Configura un contenidor flexible per a les columnes */
    gap: 1rem; /* Espai entre columnes */
}

.divcols .col {
    flex: 1 1 0; /* Totes les columnes tenen la mateixa amplada */
    display: flex;
    flex-direction: column; /* Les taules es col·loquen en vertical dins de cada columna */
    gap: 1rem; /* Espai entre taules dins de la columna */
    max-width: 100%; /* Limita l'amplada màxima de les columnes */
}

.divcols.primeraestreta {
    display: flex;
    flex-wrap: nowrap; /* Les columnes no es trenquen en una nova línia */
    gap: 1rem; /* Espai entre columnes */
}

.divcols.primeraestreta > .col:first-child {
    flex: 0 0 24%; /* Primera columna ocupa exactament el 15% */
}

.divcols.primeraestreta > .col:not(:first-child) {
    flex: 1; /* Les altres columnes s'ajusten automàticament */
}

.divcols.primeramitjana {
    display: flex;
    flex-wrap: nowrap; /* Les columnes no es trenquen en una nova línia */
    gap: 1rem; /* Espai entre columnes */
}

.divcols.primeramitjana > .col:first-child {
    flex: 0 0 34%; /* Primera columna ocupa exactament el 15% */
}

.divcols.primeramitjana > .col:not(:first-child) {
    flex: 1; /* Les altres columnes s'ajusten automàticament */
}

th.gran {
    font-size: 1.5rem;
}

th.alt {
    height: 2.8rem;
}

.icona img {
    pointer-events: none; /* Evita que les imatges siguin clicables */
    cursor: default;
}

.icona:hover {
    cursor: default;
}


.icona-link {
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
}

.icona-link:hover {
    transform: scale(1.15); /* Augmenta un 15% la mida */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Afegeix una ombra subtil */
}


/* Estil del botó a la cantonada dreta */
.cantonada-dreta {
    position: absolute; /* Posició absoluta dins del <thead> */
    right: 0.5rem; /* Ajusta la posició horitzontal */
}



.icona-txt {
    width: 100%;
    height: 2.5rem;
    line-height: 0.7rem; /* Ajusta per alinear verticalment el text */
    text-align: center; /* Centra el text horitzontalment */
    display: flex; /* Utilitza flexbox per alinear millor */
    justify-content: center; /* Centra el contingut horitzontalment */
    align-items: center; /* Centra el contingut verticalment */
    overflow: hidden; /* Amaga el contingut que excedeix les dimensions */
}

.curs {    
    width: 100%;
    height: 100%;
    line-height: 0.7rem; /* Ajusta per alinear verticalment el text */
    text-align: center; /* Centra el text horitzontalment */
    display: flex; /* Utilitza flexbox per alinear millor */
    justify-content: center; /* Centra el contingut horitzontalment */
    align-items: center; /* Centra el contingut verticalment */
    overflow: hidden; /* Amaga el contingut que excedeix les dimensions */
    padding-left: 1rem;
    padding-right: 1rem;
}

.datavacant {    
    width: 100%;
    height: 100%;
    line-height: 0.7rem; /* Ajusta per alinear verticalment el text */
    text-align: center; /* Centra el text horitzontalment */
    display: flex; /* Utilitza flexbox per alinear millor */
    justify-content: center; /* Centra el contingut horitzontalment */
    align-items: center; /* Centra el contingut verticalment */
    overflow: hidden; /* Amaga el contingut que excedeix les dimensions */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.absenciamacrocontainer {
    display: flex;
    flex-direction: column;
    height: 5.2rem;
    width: 100%;
}

.caducitat-icon {
    width: 2rem !important;
}

.groupviewdatavacant {    
    width: 1rem;
    height: 100%;
    line-height: 0.7rem; /* Ajusta per alinear verticalment el text */
    text-align: center; /* Centra el text horitzontalment */
    display: flex; /* Utilitza flexbox per alinear millor */
    justify-content: center; /* Centra el contingut horitzontalment */
    align-items: center; /* Centra el contingut verticalment */
    overflow: hidden; /* Amaga el contingut que excedeix les dimensions */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.groupviewabsenciamacrocontainer {
    display: flex;
    flex-direction: column;
    height: 2.5rem;
    width: 7rem;
}


.multi {
    display: flex;
    gap: 0.2rem;
    flex-direction: row;
}

.absencia-container {
    display: flex;
    gap: 0.2rem;
    height: 2.5rem;
    margin-bottom: 0.2rem;
}

.curs-container {
    display: flex;
    gap: 0.2rem;
    height: 2.5rem;
    margin-bottom: 0.2rem;
}

.absenciareclam-container {
    width: 100%;
    display: flex;
    height: 2.5rem;
    margin-bottom: 0.2rem;
}

.dates-container {
    display: flex;
    align-items: center;
    height: 2.5rem;
    cursor: default;
}

.dates {
    height: 100%;
    display: flex; /* Activa Flexbox */
    justify-content: center; /* Centra horitzontalment */
    align-items: center; /* Centra verticalment */
    text-align: center; /* Centra el text dins del contenidor */
    line-height: 0.7rem; /* Manté la línia de text compacta */
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.moltpetit {
    font-size: 0.6rem;
    padding: 0.5rem;
}

.petit {
    font-size: 0.8rem;
    padding: 0.5rem;
}

.mitja {
    font-size: 1rem;
    padding: 0.5rem;
}

.mitja2 {
    font-size: 1rem;
    padding: 0rem;
}

.gran {
    font-size: 1.25rem;
    padding: 0.5rem;
}

.gran2 {
    font-size: 1.5rem;
    padding: 0rem
}

.logo {
    height:3rem;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998; /* Per assegurar que la barra es manté al davant */
    background-color: white;

}

.top-bar-img {
    max-height: 100%;
    width: auto;
    height: auto; /* Assegura que la imatge es redimensiona dins del div */
}
.top-bar-botons {
    display: flex;
    gap: 0.2rem; /* Espai entre botons */
}


.main {
    margin-top: 4rem; /* Espai per col·locar-se per sota de la top-bar */
    margin-left: 10%; /* Espai per col·locar-se a la dreta de la sidebar */
    padding: 1rem;
    box-sizing: border-box;
    flex-direction: column;
}

.camp-comentari {
    width: 100%;
    height: 100%;
    font-size: 0.9rem;
    resize: vertical; /* permet redimensionar verticalment */
}


.sidebar {
    margin-top: 1.5vh;
    padding: 1vh;
    display: flex;
    gap: 1vh;
    flex-wrap: wrap;
    flex-direction: column;
    width: 10%;
    height: calc(100vh - 4rem); /* Alçada restant per sota de la top-bar */
    position: fixed;
    top: 4rem; /* Per col·locar-la just sota la top-bar */
    left: 0; /* Col·loca la sidebar a l'esquerra */
    box-sizing: border-box;
    background-color: white;
}

.esquerra {
    text-align: left !important;
    justify-content: left !important;
    align-content: center;
}

.centre {
    text-align: center;
}

.dreta {
    text-align: right;
}

.negreta {
    font-weight: bold;
}

.peutaula {
    font-family: "Bebas Neue", sans-serif;
}

.taula {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0; 
}

.taula a {
    text-decoration: none !important;
    color: inherit;
}

.taula th {
    font-family: "Bebas Neue", sans-serif;
    font-weight: normal;
    color: #ffffff;
    border: 2px solid white;
    padding-left: 1vh;
    padding-right: 1vh;
    
}

.contenidor divcentre a {
    position: relative;
    display: inline-block;
}

.contenidor divcentre a:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
}


.fixed-header {
    position: sticky;
    top: -1.5rem; /* Primera fila de capçalera */
    z-index:9;
}

.fixed-header tr:first-child th {
    border-top: solid 1.5rem white !important;
}


.taula td {
    border: 2px solid white;
    padding: 0.2rem;
    padding-left: 1vh;
    padding-right: 1vh;
}

.tauladades {
margin-bottom: -1.2rem;
}

.columnafix {
    width: 10rem;
    max-width: 10rem;
}

.columnaample {
    width: 15rem;
    max-width: 15rem;
}

.columnamitjana {
    width: 7rem;
    max-width: 7rem;
}

.accions .botomini  {
    background-color: #d8baa9 !important;
}

.accions .botomini:hover  {
    background-color: black !important;
}

.columna1 {
    width: 1rem;
    max-width: 1rem;
}
.columna2 {
    width: 2rem;
    max-width: 2rem;
}
.columna3 {
    width: 3rem;
    max-width: 3rem;
}
.columna4 {
    width: 4rem;
    max-width: 4rem;
}

.columna5 {
    width: 5rem;
    max-width: 5rem;
}

.columna6 {
    width: 6rem;
    max-width: 6rem;
}

.columna7 {
    width: 7rem;
    max-width: 7rem;
}

.columna8 {
    width: 8rem;
    max-width: 8rem;
}

.columna9 {
    width: 9rem;
    max-width: 9rem;
}

.columna10 {
    width: 10rem;
    max-width: 10rem;
}

.columna11 {
    width: 11rem;
    max-width: 11rem;
}

.columna12 {
    width: 12rem;
    max-width: 12rem;
}

.columna13 {
    width: 13rem;
    max-width: 13rem;
}

.columna14 {
    width: 14rem;
    max-width: 14rem}

.columna15 {
    width: 15rem;
    max-width: 15rem;
}

.columna16 {
    width: 16rem;
    max-width: 16rem;
}

.columna17 {
    width: 17rem;
    max-width: 17rem;
}

.columna18 {
    width: 18rem;
    max-width: 18rem;
}

.columna19 {
    width: 19rem;
    max-width: 19rem;
}

.columna20 {
    width: 20rem;
    max-width: 20rem;
}

.columna21 {
    width: 21rem;
    max-width: 21rem;
}
.columna25 {
    width: 25rem;
    max-width: 25rem;
}

.columna30 {
    width: 30rem;
    max-width: 30rem;
}
.columna70 {
    width: 70rem;
    max-width: 70rem;
}

.columna80 {
    width: 80rem;
    max-width: 80rem;
}

.columna90 {
    width: 90rem;
    max-width: 90rem;
}

.columnaboto {
    width: 5rem;
    max-width: 5rem;
}

.columnavalor {
    width: 3rem;
    max-width: 3rem;
}

.contenidor {
    display: flex;
    flex-wrap: wrap; /* Espai entre elements */
}

.separacio {
    margin-top:4rem;
    gap: 4rem;
}

.files-estretes tbody tr td {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}


.botofix {
    width: 2.5rem;
    height: 2.5rem;
    margin:0.1rem;
    cursor: pointer;
}

.botofix img {
    margin: 0.5rem; /* Aplica un marge al voltant de les imatges */
    max-height: 100%; /* Assegura que les imatges no excedeixin l’alçada del contenidor */
    object-fit: contain; /* Ajusta les imatges per mantenir la proporció dins del contenidor */
    cursor: pointer;
}


.botomini {
    width: 1rem; /* Amplada fixa del contenidor */
    height: 1rem; /* Alçada fixa del contenidor */
    display: flex; /* Centrar la imatge */
    align-items: center; /* Centrar verticalment */
    justify-content: center; /* Centrar horitzontalment */
    margin-right:0.2rem;
    margin-left:0.2rem;
    padding: 0.4rem;
    padding-top: 0.5rem !important;
    cursor: pointer;
}

.botomini img {
    max-width: 100%; /* Ajusta l'amplada màxima al contenidor */
    max-height: 100%; /* Ajusta l'alçada màxima al contenidor */
    object-fit: contain; /* Manté la proporció */
    cursor: pointer;

}
.botomini:hover {
    cursor: pointer;
}


.botoform {
    width: 7rem;
    min-height: 2.5rem;
    margin: 0.2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
    float: right; /* Mou el botó a la dreta */
}


.botoflex {
    width: 100%;
    min-height: 2.5rem;
    margin:0.2rem;
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
}


.botoflex img {
    margin: 0.5rem; /* Aplica un marge al voltant de les imatges */
    max-height: 100%; /* Assegura que les imatges no excedeixin l’alçada del contenidor */
    object-fit: contain; /* Ajusta les imatges per mantenir la proporció dins del contenidor */
    cursor: pointer;
}

.bototopbar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 8rem;
    max-width: 8rem;
    max-height: 2.5rem;
    min-height: 2.5rem;
    margin:0.2rem;
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
}

.bototopbar a {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none !important;
}

.bototopbar-img {
    display: flex;
    justify-content: space-between; /* Distribueix l'espai entre el text i la imatge */
    align-items: center; /* Centra verticalment */
    min-width: 8rem;
    max-width: 8rem;
    max-height: 2.5rem;
    min-height: 2.5rem;
    margin: 0.2rem;
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
    margin-top: 0.2rem;
    margin-right: 0;
}

.bototopbar-img img {

    max-width: 1rem; /* Espai entre la imatge i el text */
}

.bototopbar-icona {
    margin-top: 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    min-height: 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
}

.bototopbar-icona img {
    max-width: 1rem;
    display: flex;
}

.bototopbar-iconacontainer {
    gap: 0;
     display: flex;
     flex-direction: row;
}

.bototopbar-img a {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    align-items: center; /* Centra verticalment el text */
}




.botomsg {
    display: flex; /* Activa Flexbox */
    align-items: center; /* Centra verticalment el contingut */
    justify-content: center; /* Centra horitzontalment el contingut */
    width: 15rem;
    min-height: 6.8rem;
    margin: 0.2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
    box-sizing: border-box;
    padding: 1rem;
}



.noticeh {
    display: flex; /* Activa el model Flexbox per alinear el contingut */
    align-items: center; /* Centra verticalment el contingut */
    justify-content: left; /* Opcional: centra horitzontalment */
    flex: 1;
    height: 2.5rem;
    line-height: 0.7rem;
    margin: 0.1rem;
    cursor: default;
    padding: 0.2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.noticeh img {
    margin: 0.5rem; /* Aplica un marge al voltant de les imatges */
    max-height: 100%; /* Assegura que les imatges no excedeixin l’alçada del contenidor */
    object-fit: contain; /* Ajusta les imatges per mantenir la proporció dins del contenidor */
    cursor: default;
}

.taulahead {
    display: flex; /* Activa el model Flexbox per alinear el contingut */
    align-items: center; /* Centra verticalment el contingut */
    justify-content: center; /* Opcional: centra horitzontalment */
    flex: 1;
    height: 2.8rem;
    line-height: 0.9rem;
    margin: 0.1rem;
    cursor: default;
    padding: 0.2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.iconah {
    width: 2.5rem; /* Ocupa tot l'espai disponible */
    height: 2.5rem;
    margin:0.1rem;
}

.iconah img {
    margin: 0.5rem; /* Aplica un marge al voltant de les imatges */
    max-height: 100%; /* Assegura que les imatges no excedeixin l’alçada del contenidor */
    object-fit: contain; /* Ajusta les imatges per mantenir la proporció dins del contenidor */
    cursor: default;
}

.datesh {
    display: flex; /* Activa Flexbox */
    align-items: center; /* Centra verticalment */
    justify-content: center; /* Centra horitzontalment */
    width: 100%; /* Ocupa tota l'amplada del contenidor */
    min-height: 2.5rem;
    margin: 0.1rem; /* Espai superior */
    line-height: 0.7rem; /* Alçada de línia */
    text-align: center; /* Text centrat horitzontalment */
    overflow: hidden; /* Oculta el text que desborda */
    min-width: 0; /* Solució clau per a Flexbox */
    padding: 0.2rem;
    box-sizing: border-box;
}

/* Alineació vertical */
.contenidor.vertical {
    flex-direction: column; /* Disposa els elements en columna */
}

.augmenta-hover {
    transition: transform 0.3s ease; /* Animació suau */
}

.augmenta-hover:hover {
    transform: scale(1.1); /* Augmenta la mida un 10% */
    cursor: pointer;
}

.divcentre {
    align-items: center;
    justify-content: center;
}

.divdreta {
    align-items: center;
    justify-content: right;
}

.margesuperior {
    margin-top: 3rem;
}

.taula30 {
    width: 30% !important;
}


.taula50 {
    width: 50% !important;
}

.taula60 {
    width: 60% !important;
}

.taula75 {
    width: 75% !important;
}

.taulavertical td{
    padding:1rem;
}


/* Estil general per als controls */
.form-control {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    width: 100%; /* Els controls ocupen tot l'espai del contenidor */
    padding: 0.5rem; /* Espaiat intern */
    font-size: 1rem; /* Mida de font estàndard */
    border: 0px solid #ccc; /* Vora subtil */
    box-sizing: border-box; /* Per ajustar l'espaiat intern correctament */
    transition: border-color 0.3s ease; /* Suavitat en canvis de vora */
}

/* Estil quan el control està enfocat */
.form-control:focus {
    border-color: #8ec3c3; /* Canvi de color en enfocar */
    outline: none; /* Elimina el contorn per defecte */
    box-shadow: 0 0 4px rgba(142, 195, 195, 0.5); /* Ombra subtil */
}

/* Estil per al camp deshabilitat */
.form-control[disabled] {
    background-color: #f8f9fa; /* Fons clar */
    color: #212529; /* Text visible */
    border: none; /* Sense vora */
    pointer-events: none; /* Evita interacció */
    appearance: none; /* Treu la fletxa del select */
    text-align: left; /* Text alineat a l'esquerra */
    width: 100%; /* Amplada completa */
}

/* Controls de tipus hora */
.form-control.time-control {
    text-align: center; /* Centrar el text */
    width: auto; /* Ajust automàtic a l'espai */
    max-width: 3rem; /* Amplada màxima */
}

/* Específic per a camps dins de taules */
.table-control {
    margin: 0; /* Elimina marges */
    width: 100%; /* Amplada total */
    height: 100%; /* Alçada total */
}

.message {
    position: fixed; /* Ocupa tota la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e55381;
    color: white;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999; /* Assegura que es mostri per sobre de tot */
    cursor: pointer; /* Indica que es pot fer clic */
}


.modalform {
    position: fixed; /* Ocupa tota la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000; /* Assegura que es mostri per sobre de tot */
    cursor: pointer; /* Indica que es pot fer clic */
}

.permanentmsg {
    position: fixed; /* Ocupa tota la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e55381;
    color: white;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000; /* Assegura que es mostri per sobre de tot */
    cursor: pointer; /* Indica que es pot fer clic */
}

.verify {
    position: fixed; /* Ocupa tota la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000; /* Assegura que es mostri per sobre de tot */
    cursor: pointer; /* Indica que es pot fer clic */
}


.error-container {
    background-color: #e55381 !important;
}

.alert {
background-color: #feb20e !important;
}

.success {
background-color: #aed581 !important;
}

.hidden {
    display: none;
}

.info {
background-color: grey !important;
}

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group-text {
    padding: 0.4rem;
    background-color: white;
    font-size: 1rem;
}

.radio-apte {
    opacity: 1 !important;
    position: unset !important;
}

.radio-noapte {
    opacity: 1 !important;
    position: unset !important;
}

/* Base per a radio-enmarcat */
.radio-enmarcat {
    display: flex;
    gap: 10px;
}

.radio-enmarcat input[type="radio"] {
    position: absolute; /* Oculta els inputs sense afectar el layout */
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.radio-enmarcat label {
    min-width: 7rem;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease; /* Transició suau */
    text-align: center;
}

.radio-enmarcat label:hover {
    background-color: #eaeaea; /* Canvia el color quan es fa hover */
}

.radio-enmarcat input[type="radio"] + label {
    background-color: white; /* Color de fons quan no està seleccionat */
    color: grey;
    font-weight: normal; /* Text normal */
}

/* Colors per a l'estat "checked" */
.radio-enmarcat.rosa input[type="radio"]:checked + label {
    background-color: #e55381;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.blaucel input[type="radio"]:checked + label {
    background-color: #8ec3c3;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.lila input[type="radio"]:checked + label {
    background-color: #b2abbe;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.taronja input[type="radio"]:checked + label {
    background-color: #feb20e;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.blaumari input[type="radio"]:checked + label {
    background-color: #708090;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.verd input[type="radio"]:checked + label {
    background-color: #aed581;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.gris input[type="radio"]:checked + label {
    background-color: #bfbfbf;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.ocre input[type="radio"]:checked + label {
    background-color: #d8baa9;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.grisclar input[type="radio"]:checked + label {
    background-color: #cfcfcf;
    color: white;
    font-weight: bold;
}

.radio-enmarcat.blanc input[type="radio"]:checked + label {
    background-color: #ffffff;
    color: black;
    font-weight: bold;
}

.radio-enmarcat.negre input[type="radio"]:checked + label {
    background-color: #0e1111;
    color: white;
    font-weight: bold;
    overflow: visible !important;
    position: relative;
    z-index: 10;
}


/* Personalització de les etiquetes */
.form-label {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.2rem;
    margin-top: 1.2rem;
    display: block;
}

/* Personalització dels camps */
.form-field {
    font-family: "Roboto Condensed", sans-serif;
    padding: 0.7rem;
    font-size: 1.2em;
    width: 100%;
    box-sizing: border-box;
    background-color: lightgrey;
}

/* Afegir focus per als camps */
.form-field:focus {
    border: 4px solid black;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 5px rgba(128, 189, 255, 0.5);
}
.filter-input {
    width: 100%; /* Ocupa el 100% de l'amplada del td */
    box-sizing: border-box; /* Inclou el padding i el border dins de l'amplada */
    padding: 0.4rem; /* Espai intern */
    font-size: 1rem; /* Mida de la lletra */
    border: 1px solid #ccc; /* Vora fina i gris */
    border-radius: 4px; /* Arrodonim les cantonades */
    outline: none; /* Elimina l'outline quan està enfocat */
    transition: border-color 0.3s ease; /* Suavitat en el canvi de color de la vora */
    margin-bottom: 5px;
}

.filter-input:focus {
    border-color: #8ec3c3; /* Color blau clar quan es fa focus */
    box-shadow: 0 0 4px rgba(142, 195, 195, 0.5); /* Ombra subtil */
}


/* Assegura que els camps tenen un estil inicial consistent */
input,
textarea {
    width: 100%;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.2rem;
    color: #000;
    border: 1px solid #ced4da;
}

.tres-columnes {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 columnes iguals */
    gap: 1rem; /* Espai entre elements */
}

.noextenguisverticalment {
    align-self: start;
}


.visorhtml textarea {
    width: 100%;
    min-height: 30vh; /* Ajusta l'alçada mínima si cal */
    box-sizing: border-box; /* Per evitar desbordaments causats pels marges o padding */
    resize: vertical; /* Permet canviar la mida només verticalment */
}

.contenidor-html {
    display: block; /* Assegura que es comporta com un contenidor de bloc */
    overflow: visible; /* Evita truncar el contingut */
}

.pestanya-html {
    display: flex; /* Si cal, utilitza 'block' si no és necessari flexbox */
    flex-direction: column; /* Assegura que els elements es col·loquin en columna */
    height: 55vh; /* Permet que el contenidor creixi automàticament */
    overflow: visible; /* Evita truncar el contingut que sobrepassa */
    padding: 1.5rem;
    border: 0.3rem solid;
    line-height: 1.4;
    background-color: white;
    border-radius: 0;
    margin-top: 0;
    text-align: left;
    border-color: #aed581;
}


.vista-html {
    diplay: inline-block;
    transform: scale(1.7); /* Escala al 170% */
    transform-origin: top left; /* Escala des de la cantonada superior esquerra */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    width: 48vw; /* Ajustar l'ample al contenidor */
    max-width: 48vw; /* Evitar que es desbordi horitzontalment */
    height: 30vh; /* Alçada del 50% de la finestra del navegador */
    max-height: 30vh; /* Limitar al 50% de l'alçada */
    overflow-y: scroll; /* Activa desplaçament vertical */
    overflow-x: scroll; /* Evita desplaçament horitzontal */
    white-space: normal;
    line-height: 1.5;
    box-sizing: border-box; /* Incloure padding i border a l'ample */
}





/* Estil per a la taula del paginador */
.taula.paginador {
    width: 100%;
    border-collapse: collapse; /* Elimina espais entre cel·les */
    margin-bottom: 0 !important;
}

/* Ajusta les columnes específiques */
.taula.paginador th,
.taula.paginador td {
    text-align: center; /* Centra el contingut */
    padding: 0.5rem; /* Espai intern per a cel·les */
    border: 1px solid #ffffff; /* Vora blanca */
}

.taula.paginador td:first-child,
.taula.paginador td:nth-child(2),
.taula.paginador td:nth-child(4),
.taula.paginador td:nth-child(5) {
    width: 5%; /* Amplada fixa per a aquestes columnes */
    white-space: nowrap; /* Evita trencaments de text */
}

.taula.paginador td:nth-child(3) {
    width: auto; /* Aquesta columna ocupa l'espai restant */
}

/* Estil pels elements li dins del paginador */
.taula.paginador td li {
    list-style-type: none; /* Elimina els punts de la llista */
    display: inline-block; /* Mostra els elements en línia */
    margin: 0.2rem; /* Separació entre elements */
    padding: 0.8rem 1.2rem; /* Espai intern */
    background-color: #708090; /* Fons blau mari */
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem; /* Ajusta la mida del text */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Suavitat en hover */
    text-decoration: none;
    color: black;
}

.taula.paginador a {
    text-decoration: none;
    color: white;
}
/* Estil per a la pàgina activa */
.taula.paginador td li.active {
    background-color: #8ec3c3; /* Verd clar per a la pàgina activa */
    transform: scale(1.1); /* Lleuger augment */
    color: white;
}

/* Hover pels elements */
.taula.paginador td li:hover {
    background-color: #8ec3c3; /* Blau cel en passar el ratolí */
    transform: scale(1.1); /* Augmenta lleugerament la mida */
}

.marge-inferior {
    margin-bottom: 1em;
}

.ocultar-text {
    -webkit-text-security: disc; /* Oculta el text com una contrasenya */
    text-security: disc; /* Compatibilitat amb altres navegadors */
    font-size: 20px; /* Opcional: augmenta la mida del text */
    letter-spacing: 5px; /* Augmenta l'espai per dificultar la lectura */
}

.checkbox-group {
    display: flex;
    flex-direction: column; /* Posa cada checkbox en una línia nova */
    gap: 6px; /* Espai entre les opcions */
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px; /* Espai entre el checkbox i el text */
    cursor: pointer; /* Canvia el cursor per indicar que es pot clicar */
    padding: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0; /* Elimina marges innecessaris */
    width: unset;
}
.menu-container {
    position: absolute; /* Col·loca el div fora del flux del document, per sobre dels altres elements */
    top: 0; /* Posa-ho a la part superior de la pàgina o contenidor pare */
    left: 20rem; /* Centra horitzontalment respecte al pare */
    transform: translateX(-50%); /* Desplaça per centrar-lo exactament */
    width: 15rem; /* Estableix un width màxim de 15rem */
    height: auto; /* Deixa que l'altura sigui indefinida (es redimensionarà segons el contingut) */
    z-index: 9999; /* Col·loca el div per sobre de tots els altres elements (podeu ajustar aquest valor) */
    pointer-events: none; /* Opcional: desactiva la interacció amb el div (si no voleu que s'interactuï) */
    background-color: white;
    margin-top: 3.75rem;
    border: 0.3rem solid;
    border-color: black;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.botomenu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-height: 2.5rem;
    min-height: 2.5rem;
    margin:0.2rem;
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suavitat en els efectes */
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
}

.botomenu a {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-align: center;
    text-decoration: none !important;
}
.ui-autocomplete {
    z-index: 2000 !important;
    font-size: 2rem;
}

botomini.posicionador-menu {
    position: relative;
}

.menu {
    display: none; /* Amagar el menú per defecte */
    position: absolute; /* Permet que el menú es mostri fora del seu contenidor */
    top: 100%; /* Situa el menú immediatament sota el botó (o l'element disparador) */
    right: 0; /* Aliniament horitzontal al principi de l'element pare */
    background-color: white; /* Fons blanc per al menú */
    border: 4px solid #d8baa9; /* Bordes suaus al menú */
    padding: 0.1rem; /* Mida de les opcions */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Afegir una ombra per una millor visibilitat */
    width: 15rem;
    z-index: 99;
    text-transform: uppercase;
}


.menu.gris {
    border: 4px solid #bfbfbf !important; /* Bordes suaus al menú */
}

/* Opció per quan el menú està visible */
.menu.show {
    display: block; /* Mostrar el menú quan la classe 'show' es l'element actiu */
    z-index: 10000000 !important;
}


/* Estils per a la llista d'enllaços */
.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
}

.menu ul li {
    padding: 5px 5px;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
}


.menu ul li:hover {
    color: #007bff;
    background-color: #9999;
}

.fila-districte.ocult {
    display: none;
}

.fila-districte.visible {
    display: table-row;
}




.divalta {

    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: white; 
    z-index: 1000; 
    overflow: auto; 
    margin-top: -0.3em; 
    padding-right: 2em; 
    padding-left: 2em; 
    padding-top: 4em; 
    padding-bottom: 4em;
}

td.accions {
    position: relative;
}

.nowidth {
    width: unset !important;
}

.marginleft {
    margin-left: 2rem;
}
.marginright {
    margin-right: 2rem;
}

.camp-operacio {
    margin-top: 1.2rem;       /* Distància extra respecte el div anterior */
    max-width: 14vh;         /* Més estret */
    margin-left: auto;
    margin-right: auto;       /* Centrat dins la td */
    text-align: center;
}

.camp-operacio input {
    width: 100%;              /* El camp ocupa tot el div */
    padding: 0.4rem;
}

.input-modal {
    padding: 5px 10px;
    font-size: 2rem;
}

.botomsg.desactivat {
    pointer-events: none;
    opacity: 0.5;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 0;
    border-bottom: 2px solid #ccc;
    margin-bottom: 1rem;
}

.nav-tabs li {
    display: inline-block;
    margin: 0;
}

.nav-tabs .nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    color: black;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link.active {
    background-color: white;
    border-bottom: 2px solid white;
}
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}




/* Grup de botons toggle */
.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Oculta el radio original */

.toggle-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Estil bàsic del botó associat al radio */
.toggle-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #e0e0e0; /* gris clar quan no seleccionat */
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 12rem;
    text-align: center;
}

/* Estat seleccionat per defecte */
.toggle-radio:checked + .toggle-label {
    color: white;
    font-weight: bold;
    background-color: #999;
}

/* Colors personalitzats per valor (no seleccionats) */
.toggle-label.valor-1 { background-color: #ccc; }     /* rosa suau */
.toggle-label.valor-2 { background-color: #ccc; }     /* taronja suau */
.toggle-label.valor-3 { background-color: #ccc; }     /* verd clar */
.toggle-label.valor-4 { background-color: #ccc; }     /* verd intens */
.toggle-label.valor-nsnc { background-color: #ccc; }     /* gris */

/* Colors seleccionats per valor */
.toggle-radio:checked + .valor-1 { background-color: #e55381; }
.toggle-radio:checked + .valor-2 { background-color: #feb20e; }
.toggle-radio:checked + .valor-3 { background-color: #8bc34a; }
.toggle-radio:checked + .valor-4 { background-color: #388e3c; }
.toggle-radio:checked + .valor-nsnc { background-color: #999; }

/* Estil de la pregunta */
.preguntatext {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 2rem;
}

/* Contenidor de cada pregunta */
.pregunta {
    border: 4px solid #708090;
    padding: 2rem;
    margin-bottom: 3rem;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    background-color: #fdfdfd;
}

.form-control.enquesta {
    border: solid 4px grey;
}

.pantalla-completa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 998;
    overflow-y: auto;
    padding: 2rem;
}

.marge-inferior-extra {
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
  table.taula-filar, table.taulavertical {
    display: block;
    width: 100%;
  }
table.taula-filar thead,
table.taulavertical thead {
  border: none !important;
}

table.taula-filar th,
table.taulavertical th {
  border: none !important;
}

  table.taula-filar tbody,
  table.taulavertical tbody {
    display: block;
  }

  table.taula-filar tr,
  table.taulavertical tr {
    display: block;
    margin-bottom: 1rem;
    padding: 0.5rem;
     border: none;
  }

  table.taula-filar td,
  table.taulavertical td {
    display: block;
    width: 100%;
    padding: 0.25rem 0;
    text-align: left;
    border: none;
  }

  table.taula-filar td:before,
  table.taulavertical td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
     border: none;
  }

  .divalta {

    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: white; 
    z-index: 1000; 
    overflow: auto; 
    margin-top: unset;
    padding-right: unset; 
    padding-left: unset; 
    padding-top: unset; 
    padding-bottom: unset;
}
    .divcols {
        flex-direction: column !important;
      }

  .divcols .col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .divcols.primeraestreta > .col:first-child,
  .divcols.primeraestreta > .col:not(:first-child),
  .divcols.primeramitjana > .col:first-child,
  .divcols.primeramitjana > .col:not(:first-child) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  .radio-enmarcat label {
    min-width: 10vh !important;
    }

.fila-districte.visible {
    display: block;
}


}
