@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
    --espai-seguretat-superior: env(safe-area-inset-top, 0px);
    --espai-seguretat-dreta: env(safe-area-inset-right, 0px);
    --espai-seguretat-inferior: env(safe-area-inset-bottom, 0px);
    --espai-seguretat-esquerra: env(safe-area-inset-left, 0px);
    --color-fons: #f4ede3;
    --color-fons-alt: #efe3d4;
    --color-superficie: rgba(255, 252, 247, 0.96);
    --color-superficie-forta: #12344f;
    --color-superficie-contrast: #0f2235;
    --color-text-principal: #182230;
    --color-text-secundari: #425466;
    --color-text-invers: #fffdf8;
    --color-contorn: rgba(18, 52, 79, 0.12);
    --color-contorn-fort: rgba(18, 52, 79, 0.24);
    --color-accent-principal: #0f6a73;
    --color-accent-principal-fosc: #0b4e55;
    --color-accent-secundari: #c95f34;
    --color-accent-terciari: #8f355f;
    --color-accent-focus: #1769e0;
    --color-entrada: #0d7a63;
    --color-entrada-fosc: #085846;
    --color-sortida: #c25722;
    --color-sortida-fosc: #923e16;
    --color-exit: #14532d;
    --color-error: #9f1d22;
    --color-avis: #8b5a10;
    --color-info: #1c56a3;
    --ombra-1: 0 20px 50px rgba(18, 52, 79, 0.12);
    --ombra-2: 0 12px 24px rgba(18, 52, 79, 0.1);
    --ombra-3: 0 4px 10px rgba(18, 52, 79, 0.08);
    --radi-gran: 30px;
    --radi-mitja: 20px;
    --radi-xicotet: 14px;
    --amplada-maxima-fitxatge: 860px;
    --amplada-maxima-rrhh: 1280px;
    --font-base: "Aptos", "Segoe UI", system-ui, sans-serif;
    --font-titols: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-base);
    color: var(--color-text-principal);
    overscroll-behavior-y: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(143, 53, 95, 0.12), transparent 22rem),
        radial-gradient(circle at 100% 0%, rgba(15, 106, 115, 0.14), transparent 26rem),
        linear-gradient(180deg, var(--color-fons) 0%, var(--color-fons-alt) 100%);
}

.tema-fitxatge {
    display: flex;
    flex-direction: column;
}

body.mode-standalone.tema-fitxatge {
    min-height: 100dvh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 2rem;
    right: 2rem;
    width: min(22vw, 220px);
    height: min(22vw, 220px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 95, 52, 0.18), transparent 68%);
    filter: blur(2px);
}

body::after {
    left: -3rem;
    bottom: -3rem;
    width: min(28vw, 260px);
    height: min(28vw, 260px);
    border-radius: 42px;
    border: 1px solid rgba(18, 52, 79, 0.08);
    transform: rotate(-12deg);
}

a,
button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
.boto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.6rem;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radi-mitja);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

button:hover,
.boto:hover,
button:focus-visible,
.boto:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

button:focus-visible,
.boto:focus-visible,
.camp-gran:focus-visible,
.camp-text:focus-visible,
select.camp-text:focus-visible {
    box-shadow:
        0 0 0 4px rgba(255, 253, 248, 0.92),
        0 0 0 7px rgba(23, 105, 224, 0.42);
}

button:disabled,
.boto[aria-disabled="true"] {
    opacity: 0.72;
    cursor: wait;
}

.tema-fitxatge .contenidor-app {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem;
}

.estructura-principal {
    width: min(100%, var(--amplada-maxima-fitxatge));
}

.estructura-fitxatge {
    display: grid;
    gap: 1rem;
}

.tema-fitxatge .peu-fitxatge {
    position: relative;
    z-index: 1;
    padding: 0 1.8rem 1.2rem;
}

.tema-fitxatge .contingut-peu-fitxatge {
    width: min(100%, var(--amplada-maxima-fitxatge));
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.1rem 0.85rem;
    border: 1px solid rgba(18, 52, 79, 0.08);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.72);
    box-shadow: var(--ombra-3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.tema-fitxatge .grup-logos-fitxatge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.tema-fitxatge .enllac-logo-fitxatge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 50px;
    padding: 0.48rem 0.82rem;
    border-radius: 15px;
    border: 1px solid transparent;
    background: transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tema-fitxatge .enllac-logo-fitxatge:hover,
.tema-fitxatge .enllac-logo-fitxatge:focus-visible {
    transform: translateY(-1px);
    outline: none;
    box-shadow:
        0 0 0 4px rgba(23, 105, 224, 0.18),
        0 8px 20px rgba(18, 52, 79, 0.12);
}

.tema-fitxatge .enllac-logo-fitxatge-fosc {
    border-color: rgba(18, 52, 79, 0.08);
    background: linear-gradient(180deg, #10263a, #173653);
}

.tema-fitxatge .enllac-logo-fitxatge-clar {
    border-color: rgba(18, 52, 79, 0.12);
    background: #ffffff;
}

.tema-fitxatge .logo-entitat-fitxatge {
    display: block;
    width: auto;
    max-width: 122px;
    max-height: 30px;
    object-fit: contain;
}

.tema-fitxatge .logo-entitat-fitxatge-osonia {
    max-height: 24px;
}

.tema-fitxatge .logo-entitat-fitxatge-ccosona {
    max-height: 28px;
}

.tema-fitxatge .text-peu-fitxatge {
    margin: 0;
    font-size: 0.84rem;
    color: var(--color-text-secundari);
}

.tema-fitxatge .text-peu-fitxatge a {
    color: var(--color-superficie-forta);
    text-decoration: none;
    font-weight: 800;
}

.tema-fitxatge .text-peu-fitxatge a:hover,
.tema-fitxatge .text-peu-fitxatge a:focus-visible {
    text-decoration: underline;
}

.encapcalat-minim {
    display: flex;
    justify-content: center;
}

.marca-aplicacio {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.78);
    border: 1px solid rgba(18, 52, 79, 0.08);
    box-shadow: var(--ombra-3);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-superficie-forta);
}

.marca-aplicacio::before {
    content: "";
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-principal), var(--color-accent-secundari));
    box-shadow: 0 0 0 4px rgba(15, 106, 115, 0.1);
}

.panell {
    position: relative;
    z-index: 1;
    background: var(--color-superficie);
    border: 1px solid rgba(18, 52, 79, 0.08);
    border-radius: var(--radi-gran);
    box-shadow: var(--ombra-1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.panell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    border-radius: var(--radi-gran) var(--radi-gran) 0 0;
    background: linear-gradient(90deg, var(--color-accent-principal), var(--color-accent-secundari), var(--color-accent-terciari));
}

.panell-fitxatge {
    overflow: hidden;
    padding: clamp(1.6rem, 3.2vw, 2.8rem);
    display: grid;
    gap: 1.3rem;
}

.panell-fitxatge::after {
    content: "";
    position: absolute;
    right: -4.5rem;
    top: -4.5rem;
    width: 12rem;
    height: 12rem;
    border-radius: 2.6rem;
    transform: rotate(22deg);
    background: linear-gradient(135deg, rgba(15, 106, 115, 0.08), rgba(201, 95, 52, 0.08));
    pointer-events: none;
}

.panell-fitxatge-inici,
.panell-fitxatge-pin {
    text-align: center;
}

.panell-fitxatge-inici .titol-pantalla,
.panell-fitxatge-inici .subtitol-pantalla,
.panell-fitxatge-inici .text-ajuda,
.panell-fitxatge-inici .missatge-info-inici,
.panell-fitxatge-pin .titol-pantalla,
.panell-fitxatge-pin .subtitol-pantalla,
.panell-fitxatge-pin .text-ajuda,
.panell-fitxatge-pin .etiqueta-camp,
.panell-fitxatge-pin .missatge {
    text-align: center;
}

.panell-fitxatge-inici .titol-pantalla,
.panell-fitxatge-inici .subtitol-pantalla,
.panell-fitxatge-inici .text-ajuda,
.panell-fitxatge-inici .missatge-info-inici,
.panell-fitxatge-pin .titol-pantalla,
.panell-fitxatge-pin .subtitol-pantalla,
.panell-fitxatge-pin .text-ajuda,
.panell-fitxatge-pin .etiqueta-camp,
.panell-fitxatge-pin .missatge {
    justify-self: center;
    width: min(100%, 44rem);
}

.panell-fitxatge-inici .grup-botons-principal {
    width: min(100%, 44rem);
    justify-self: center;
}

.panell-fitxatge-inici .text-ajuda,
.panell-fitxatge-pin .text-ajuda {
    padding-left: 0;
    border-left: 0;
}

.panell-fitxatge-pin .formulari-pin {
    width: min(100%, 36rem);
    justify-self: center;
}

.panell-fitxatge-pin .grup-camp-gran,
.panell-fitxatge-pin .teclat-numeric,
.panell-fitxatge-pin .grup-botons-secundaris,
.panell-fitxatge-pin #error-pin {
    width: 100%;
}

.panell-fitxatge-confirmacio {
    text-align: center;
}

.panell-fitxatge-sollicitud {
    text-align: center;
}

.panell-fitxatge-confirmacio .titol-pantalla,
.panell-fitxatge-confirmacio .subtitol-pantalla,
.panell-fitxatge-confirmacio .text-ajuda,
.panell-fitxatge-confirmacio .missatge-central,
.panell-fitxatge-confirmacio .boto-gegant {
    justify-self: center;
    text-align: center;
}

.panell-fitxatge-confirmacio .subtitol-pantalla,
.panell-fitxatge-confirmacio .text-ajuda,
.panell-fitxatge-confirmacio .missatge-central {
    width: min(100%, 44rem);
}

.panell-fitxatge-sollicitud .titol-pantalla,
.panell-fitxatge-sollicitud .subtitol-pantalla,
.panell-fitxatge-sollicitud .text-ajuda {
    justify-self: center;
    text-align: center;
    width: min(100%, 44rem);
}

.panell-fitxatge-sollicitud .etiqueta-camp,
.panell-fitxatge-sollicitud .error-camp {
    text-align: left;
}

.panell-fitxatge-sollicitud .grup-botons-secundaris,
.panell-fitxatge-sollicitud .llistat-ajuda-sollicitud-rrhh,
.panell-fitxatge-sollicitud .formulari-sollicitud-publica {
    width: min(100%, 36rem);
    justify-self: center;
}

.panell-fitxatge-sollicitud .grup-botons-sollicitud-rrhh {
    width: min(100%, 52rem);
    justify-self: center;
}

.panell-fitxatge-sollicitud .text-ajuda-sollicitud-rrhh,
.panell-fitxatge-sollicitud .camp-text,
.panell-fitxatge-sollicitud .camp-textarea {
    width: 100%;
}

.formulari-sollicitud-publica .grup-botons-secundaris .boto {
    width: 100%;
}

.llistat-ajuda-sollicitud-rrhh {
    display: grid;
    gap: 0.75rem;
}

.text-ajuda-sollicitud-rrhh {
    text-align: left;
}

.titol-pantalla,
.titol-barra,
.titol-seccio {
    font-family: var(--font-titols);
    letter-spacing: -0.02em;
}

.titol-pantalla {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.4rem, 4.4vw, 3.85rem);
    line-height: 0.98;
    color: var(--color-superficie-contrast);
}

.subtitol-pantalla {
    margin: 0;
    max-width: 44rem;
    font-size: clamp(1rem, 1.75vw, 1.26rem);
    line-height: 1.6;
    color: var(--color-text-secundari);
}

.titol-pantalla-inici {
    max-width: none;
}

.titol-pantalla-linia-unica {
    max-width: none;
}



.grup-botons-principal,
.grup-botons-secundaris {
    display: grid;
    gap: 1rem;
}

.grup-botons-principal {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.boto-gegant {
    position: relative;
    overflow: hidden;
    min-height: 7rem;
    padding: 1.6rem;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    border-radius: 26px;
    box-shadow: var(--ombra-2);
}

.boto-gegant::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.boto-mitja {
    min-height: 3.3rem;
}

.boto-principal {
    background: linear-gradient(135deg, var(--color-superficie-forta), #1d4569);
    color: var(--color-text-invers);
    border-color: rgba(255, 255, 255, 0.1);
}

.boto-secundari {
    background: linear-gradient(180deg, #fffdf9, #edf4f6);
    color: var(--color-text-principal);
    border-color: var(--color-contorn);
}

.boto-entrada {
    background: linear-gradient(135deg, var(--color-entrada), var(--color-entrada-fosc));
    color: var(--color-text-invers);
    border-color: rgba(255, 255, 255, 0.12);
}

.boto-sortida {
    background: linear-gradient(135deg, var(--color-sortida), var(--color-sortida-fosc));
    color: var(--color-text-invers);
    border-color: rgba(255, 255, 255, 0.12);
}

.boto-rrhh {
    background: linear-gradient(135deg, var(--color-accent-principal), var(--color-accent-terciari));
    color: var(--color-text-invers);
    border-color: rgba(255, 255, 255, 0.12);
}

.boto-perill {
    background: linear-gradient(180deg, #fff4f4, #fee3e2);
    color: var(--color-error);
    border-color: rgba(159, 29, 34, 0.22);
}

.boto-xicotet {
    min-height: 2.85rem;
    padding: 0.72rem 1rem;
    font-size: 0.95rem;
    border-radius: 16px;
    box-shadow: none;
}

.missatge {
    position: relative;
    z-index: 1;
    padding: 1rem 1.15rem 1rem 1.3rem;
    border-radius: 18px;
    border: 2px solid transparent;
    line-height: 1.55;
    box-shadow: var(--ombra-3);
}

.missatge::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.45rem;
    border-radius: 18px 0 0 18px;
    background: currentColor;
    opacity: 0.9;
}

.missatge-exit {
    background: #e6f9ee;
    border-color: rgba(20, 83, 45, 0.14);
    color: var(--color-exit);
}

.missatge-error {
    background: #fff0ef;
    border-color: rgba(159, 29, 34, 0.16);
    color: var(--color-error);
}

.missatge-avis {
    background: #fff4dd;
    border-color: rgba(139, 90, 16, 0.16);
    color: var(--color-avis);
}

.missatge-info {
    background: #edf5ff;
    border-color: rgba(28, 86, 163, 0.16);
    color: var(--color-info);
}

.missatge-central {
    margin: 0;
    padding: 1.6rem;
    border-radius: 22px;
    font-size: clamp(1.32rem, 2.9vw, 2.05rem);
    font-weight: 900;
    line-height: 1.35;
    box-shadow: var(--ombra-3);
}

.missatge-central-exit {
    background: linear-gradient(180deg, #ecfbf2, #def7e8);
    color: var(--color-exit);
}

.missatge-central-error {
    background: linear-gradient(180deg, #fff2f1, #fee7e5);
    color: var(--color-error);
}

.missatge-central-linia-unica {
    padding: 1rem 1.15rem;
    font-size: clamp(0.92rem, 1.65vw, 1.18rem);
    font-weight: 800;
    line-height: 1.2;
}

.text-ajuda,
.text-secundari {
    margin: 0;
    color: var(--color-text-secundari);
    line-height: 1.58;
}

.text-ajuda {
    padding-left: 0.95rem;
    border-left: 4px solid rgba(15, 106, 115, 0.2);
}

.formulari-pin,
.formulari-rrhh,
.formulari-filtres {
    display: grid;
    gap: 1rem;
}

.grup-camp-gran {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.camp-gran,
.camp-text,
select.camp-text {
    width: 100%;
    min-height: 3.6rem;
    padding: 0.98rem 1rem;
    border: 2px solid rgba(66, 84, 102, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-principal);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.camp-pin {
    min-height: 5.2rem;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.34rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
}

.camp-textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.etiqueta-camp {
    font-weight: 800;
    color: var(--color-superficie-contrast);
}

.error-camp {
    margin: -0.5rem 0 0;
    color: var(--color-error);
    font-weight: 800;
}

.teclat-numeric {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.boto-tecla {
    min-height: 4.8rem;
    border-radius: 22px;
    border: 2px solid rgba(18, 52, 79, 0.12);
    background: linear-gradient(180deg, #fffefb, #eff5f7);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-superficie-contrast);
    box-shadow: var(--ombra-3);
}

.boto-tecla-esborrar {
    font-size: 1rem;
    background: linear-gradient(180deg, #fff5f5, #ffe8e6);
}

.boto-tecla-validar {
    font-size: 1rem;
    background: linear-gradient(180deg, #ecf6ff, #dbeefe);
}

.formulari-accio-rapida {
    margin: 0;
}

.panell-fitxatge-confirmacio-usuari {
    justify-items: center;
    text-align: center;
}

.subtitol-confirmacio-usuari {
    max-width: none;
    text-align: center;
}

.text-ajuda-confirmacio-usuari {
    padding-left: 0;
    border-left: 0;
    max-width: none;
    text-align: center;
}

.grup-botons-confirmacio-usuari {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 1.25rem;
}

.formulari-accio-confirmacio-usuari {
    width: 100%;
}

.formulari-accio-confirmacio-usuari .boto-gegant {
    width: 100%;
}

.boto-confirmacio-usuari {
    width: 100%;
    min-height: 6.2rem;
}

.panell-fitxatge-sollicituds-usuari {
    align-items: stretch;
}

.resum-public-sollicituds {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
}

.targeta-resum-publica {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(33, 37, 41, 0.1);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    box-shadow: var(--ombra-3);
    text-align: left;
}

.targeta-resum-etiqueta {
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secundari);
}

.targeta-resum-valor {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1;
    color: var(--color-text-principal);
}

.llistat-sollicituds-usuari {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.targeta-sollicitud-usuari {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid rgba(33, 37, 41, 0.1);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 245, 247, 0.96)),
        linear-gradient(135deg, rgba(230, 0, 0, 0.03), rgba(33, 37, 41, 0.02));
    box-shadow: var(--ombra-2);
    text-align: left;
}

.capsalera-targeta-sollicitud {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.capsalera-targeta-sollicitud-text {
    display: grid;
    gap: 0.3rem;
}

.eyebrow-sollicitud-usuari {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-principal);
}

.titol-targeta-sollicitud {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.18;
    color: var(--color-text-principal);
}

.insignia-sollicitud-usuari {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.insignia-sollicitud-usuari-pendent {
    background: #fff3cd;
    color: #6a4b00;
}

.insignia-sollicitud-usuari-aprovada {
    background: #d1f7e4;
    color: #146c43;
}

.insignia-sollicitud-usuari-rebutjada {
    background: #ffe0e3;
    color: #9b1c31;
}

.dades-sollicitud-usuari {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.2rem;
}

.dades-sollicitud-usuari p,
.bloc-text-sollicitud {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.bloc-text-sollicitud {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(230, 0, 0, 0.04);
}

.bloc-text-sollicitud-resposta {
    background: rgba(33, 37, 41, 0.05);
}

.text-ajuda-sollicituds-buida {
    width: 100%;
    padding: 1.1rem 1.2rem;
    border: 1px dashed rgba(33, 37, 41, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.grup-botons-secundaris-sollicituds-usuari {
    width: 100%;
}
}

.tema-fitxatge {
    --color-fons: #ffffff;
    --color-fons-alt: #f8f9fa;
    --color-superficie: rgba(255, 255, 255, 0.98);
    --color-superficie-forta: #e60000;
    --color-superficie-contrast: #212529;
    --color-text-principal: #212529;
    --color-text-secundari: #6c757d;
    --color-text-invers: #ffffff;
    --color-contorn: rgba(33, 37, 41, 0.12);
    --color-contorn-fort: rgba(33, 37, 41, 0.22);
    --color-accent-principal: #e60000;
    --color-accent-principal-fosc: #af0000;
    --color-accent-secundari: #212529;
    --color-accent-terciari: #af0000;
    --color-accent-focus: #af0000;
    --color-entrada: #212529;
    --color-entrada-fosc: #111418;
    --color-sortida: #e60000;
    --color-sortida-fosc: #af0000;
    --ombra-1: 0 20px 50px rgba(33, 37, 41, 0.08);
    --ombra-2: 0 12px 24px rgba(33, 37, 41, 0.08);
    --ombra-3: 0 4px 12px rgba(33, 37, 41, 0.06);
    --font-base: "Poppins", "Segoe UI", system-ui, sans-serif;
    --font-titols: "Poppins", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(230, 0, 0, 0.07), transparent 19rem),
        radial-gradient(circle at top right, rgba(175, 0, 0, 0.08), transparent 22rem),
        linear-gradient(180deg, #ffffff 0%, #f8f9fa 55%, #f3f4f6 100%);
}

.tema-fitxatge::before {
    top: 1.5rem;
    right: 1.5rem;
    width: min(22vw, 220px);
    height: min(22vw, 220px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.1), transparent 68%);
}

.tema-fitxatge::after {
    left: -2rem;
    bottom: -2rem;
    width: min(28vw, 250px);
    height: min(28vw, 250px);
    border-radius: 42px;
    border: 1px solid rgba(33, 37, 41, 0.08);
    transform: rotate(-12deg);
}

.tema-fitxatge button:focus-visible,
.tema-fitxatge .boto:focus-visible,
.tema-fitxatge .camp-gran:focus-visible,
.tema-fitxatge .camp-text:focus-visible,
.tema-fitxatge select.camp-text:focus-visible {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.96),
        0 0 0 7px rgba(175, 0, 0, 0.24);
}

.capcalera-corporativa-fitxatge {
    position: relative;
    z-index: 1;
    padding: 1rem 1.8rem 0;
}

.marca-corporativa-fitxatge {
    width: min(100%, var(--amplada-maxima-fitxatge));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.95rem 1.2rem;
    border: 1px solid rgba(33, 37, 41, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--ombra-3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo-capcalera-fitxatge {
    display: block;
    width: auto;
    max-width: min(48vw, 330px);
    max-height: 46px;
    object-fit: contain;
}

.tema-fitxatge .contenidor-app {
    padding: 1.2rem 1.8rem 1.8rem;
}

.tema-fitxatge .contingut-peu-fitxatge {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(33, 37, 41, 0.96), rgba(17, 20, 24, 0.98));
    box-shadow: 0 10px 22px rgba(17, 20, 24, 0.18);
}

.tema-fitxatge .enllac-logo-fitxatge:hover,
.tema-fitxatge .enllac-logo-fitxatge:focus-visible {
    box-shadow:
        0 0 0 4px rgba(230, 0, 0, 0.12),
        0 8px 20px rgba(33, 37, 41, 0.1);
}

.tema-fitxatge .enllac-logo-fitxatge-fosc {
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #212529, #343a40);
}

.tema-fitxatge .enllac-logo-fitxatge-clar {
    border-color: rgba(255, 255, 255, 0.08);
    background: #ffffff;
}

.tema-fitxatge .logo-entitat-fitxatge-ccosona {
    max-height: 30px;
}

.tema-fitxatge .text-peu-fitxatge {
    color: rgba(255, 255, 255, 0.78);
}

.tema-fitxatge .text-peu-fitxatge a {
    color: #ffffff;
}

.mode-standalone .capcalera-corporativa-fitxatge {
    padding-top: calc(0.9rem + var(--espai-seguretat-superior));
    padding-left: calc(1.2rem + var(--espai-seguretat-esquerra));
    padding-right: calc(1.2rem + var(--espai-seguretat-dreta));
}

.mode-standalone.tema-fitxatge .contenidor-app {
    padding-left: calc(1.2rem + var(--espai-seguretat-esquerra));
    padding-right: calc(1.2rem + var(--espai-seguretat-dreta));
    padding-bottom: calc(1.2rem + var(--espai-seguretat-inferior));
}

.mode-standalone.tema-fitxatge .peu-fitxatge {
    padding-left: calc(1.2rem + var(--espai-seguretat-esquerra));
    padding-right: calc(1.2rem + var(--espai-seguretat-dreta));
    padding-bottom: calc(0.95rem + var(--espai-seguretat-inferior));
}

.mode-standalone.tema-fitxatge .marca-corporativa-fitxatge,
.mode-standalone.tema-fitxatge .contingut-peu-fitxatge {
    border-radius: 24px;
}

.tema-fitxatge .panell {
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 249, 250, 0.99));
    box-shadow: var(--ombra-1);
}

.tema-fitxatge .panell::before {
    background: linear-gradient(90deg, #e60000, #c60000, #af0000);
}

.tema-fitxatge .panell-fitxatge::after {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.08), rgba(33, 37, 41, 0.06));
}

.tema-fitxatge .titol-pantalla {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #212529;
}

.tema-fitxatge .subtitol-pantalla {
    color: #6c757d;
}

.tema-fitxatge .text-ajuda {
    color: #6c757d;
    border-left-color: rgba(230, 0, 0, 0.18);
}

.tema-fitxatge .boto-principal {
    background: linear-gradient(135deg, #e60000, #af0000);
    color: #ffffff;
    border-color: rgba(175, 0, 0, 0.16);
}

.tema-fitxatge .boto-secundari {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    color: #212529;
    border-color: rgba(33, 37, 41, 0.12);
}

.tema-fitxatge .boto-entrada {
    background: linear-gradient(135deg, #212529, #111418);
    color: #ffffff;
    border-color: rgba(33, 37, 41, 0.14);
}

.tema-fitxatge .boto-sortida {
    background: linear-gradient(135deg, #e60000, #af0000);
    color: #ffffff;
    border-color: rgba(175, 0, 0, 0.16);
}

.tema-fitxatge .boto-rrhh {
    background: linear-gradient(135deg, #8a0000, #212529);
    color: #ffffff;
    border-color: rgba(33, 37, 41, 0.16);
}

.tema-fitxatge .missatge-info {
    background: #fff5f5;
    border-color: rgba(230, 0, 0, 0.14);
    color: #af0000;
}

.tema-fitxatge .camp-gran,
.tema-fitxatge .camp-text,
.tema-fitxatge select.camp-text {
    border: 2px solid rgba(33, 37, 41, 0.12);
    background: rgba(255, 255, 255, 0.98);
    color: #212529;
}

.tema-fitxatge .camp-pin {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
}

.tema-fitxatge .boto-tecla {
    border-color: rgba(33, 37, 41, 0.1);
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    color: #212529;
}

.tema-fitxatge .boto-tecla-esborrar {
    background: linear-gradient(180deg, #fff2f2, #ffe5e5);
    color: #af0000;
}

.tema-fitxatge .boto-tecla-validar {
    background: linear-gradient(180deg, #e60000, #af0000);
    color: #ffffff;
}

.regio-viva,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tema-rrhh {
    min-height: 100vh;
}

.estructura-rrhh {
    position: relative;
    z-index: 1;
    width: min(100%, var(--amplada-maxima-rrhh));
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.barra-rrhh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.45rem 1.5rem;
    background:
        linear-gradient(135deg, rgba(18, 52, 79, 0.98), rgba(27, 69, 105, 0.92)),
        var(--color-superficie-contrast);
    color: var(--color-text-invers);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radi-gran);
    box-shadow: var(--ombra-1);
}

.barra-rrhh .marca-aplicacio {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: var(--color-text-invers);
}

.barra-rrhh .text-secundari {
    color: rgba(255, 253, 248, 0.86);
}

.titol-barra,
.titol-seccio {
    margin: 0;
}

.titol-barra {
    font-size: clamp(1.9rem, 2.5vw, 2.6rem);
}

.titol-seccio {
    font-size: clamp(1.6rem, 2vw, 2.05rem);
    color: var(--color-superficie-contrast);
}

.accions-barra,
.capsalera-seccio,
.grup-accions-taula {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.navegacio-rrhh {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.enllac-nav {
    padding: 0.9rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.7);
    border: 1px solid rgba(18, 52, 79, 0.08);
    box-shadow: var(--ombra-3);
    font-weight: 800;
}

.enllac-nav[aria-current="page"] {
    background: linear-gradient(135deg, var(--color-accent-principal), var(--color-accent-principal-fosc));
    color: var(--color-text-invers);
    border-color: transparent;
}

.contingut-rrhh {
    display: grid;
    gap: 1rem;
}

.panell-rrhh {
    overflow: hidden;
    padding: 1.55rem;
}

.panell-rrhh-estret {
    max-width: 34rem;
    margin: 5vh auto 0;
}

.formulari-rrhh-ampli {
    max-width: 42rem;
}

.formulari-rrhh-estret {
    max-width: 24rem;
}

.graella-indicadors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.targeta-indicador {
    position: relative;
    padding: 1.3rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffefb, #f6f8fb);
    border: 1px solid rgba(18, 52, 79, 0.08);
    box-shadow: var(--ombra-3);
}

.targeta-indicador::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--color-accent-principal), var(--color-accent-secundari));
}

.etiqueta-indicador {
    margin: 0 0 0.55rem;
    color: #4f6073;
    font-weight: 800;
}

.valor-indicador {
    margin: 0;
    font-family: var(--font-titols);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.taula-responsive {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(18, 52, 79, 0.08);
}

.taula-llistat {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
}

.taula-llistat th,
.taula-llistat td {
    padding: 0.95rem;
    text-align: left;
    border-bottom: 1px solid #dfe7ef;
    vertical-align: top;
}

.taula-llistat th {
    background: linear-gradient(180deg, #f9fbfd, #eff4f8);
    color: var(--color-superficie-contrast);
    font-weight: 900;
}

.taula-llistat tbody tr:nth-child(even) {
    background: rgba(244, 248, 251, 0.66);
}

.taula-llistat tbody tr:hover {
    background: rgba(237, 245, 255, 0.9);
}

.formulari-filtres {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}

.camp-filtre {
    display: grid;
    gap: 0.5rem;
}

.insignia-estat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.insignia-estat-pendent {
    background: #fff4dd;
    color: #8b5a10;
}

.insignia-estat-aprovada {
    background: #e6f9ee;
    color: #14532d;
}

.insignia-estat-rebutjada {
    background: #fff0ef;
    color: #9f1d22;
}

.resum-sollicitud-rrhh {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(18, 52, 79, 0.08);
    background: rgba(248, 251, 253, 0.9);
}

.resum-sollicitud-rrhh p {
    margin: 0;
}

.casella-opcio {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
}

.tema-rrhh {
    color: #d9e3ee;
    background:
        radial-gradient(circle at top left, rgba(42, 110, 189, 0.2), transparent 22rem),
        radial-gradient(circle at bottom right, rgba(10, 124, 128, 0.18), transparent 24rem),
        linear-gradient(180deg, #0d1b2a 0%, #13263a 52%, #101c2b 100%);
    font-size: 16px;
    line-height: 1.45;
}

.tema-rrhh::before {
    top: 1.5rem;
    right: 1.5rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 148, 171, 0.2), transparent 68%);
}

.tema-rrhh::after {
    left: auto;
    right: -4rem;
    bottom: 4rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: none;
}

.tema-rrhh .estructura-rrhh {
    position: relative;
    z-index: 1;
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 1.1rem;
    display: grid;
    gap: 0.75rem;
}

.capcalera-corporativa-rrhh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.marca-corporativa-rrhh {
    display: grid;
    gap: 0.35rem;
}

.eyebrow-rrhh,
.subcapcalera-rrhh {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(193, 210, 228, 0.82);
}

.nom-corporatiu-rrhh {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f4f7fb;
}

.grup-logos-rrhh {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.enllac-logo-rrhh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 64px;
    padding: 0.7rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.enllac-logo-rrhh-fosc {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8, 17, 29, 0.9), rgba(18, 41, 66, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.enllac-logo-rrhh-clar {
    border-color: rgba(17, 38, 59, 0.12);
    background: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 24px rgba(0, 0, 0, 0.14);
}

.enllac-logo-rrhh:hover,
.enllac-logo-rrhh:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(14, 105, 224, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.14);
    outline: none;
}

.logo-entitat-rrhh {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
}

.logo-entitat-rrhh-osonia {
    max-height: 34px;
}

.logo-entitat-rrhh-ccosona {
    max-height: 40px;
}

.tema-rrhh .barra-rrhh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(11, 27, 44, 0.96), rgba(18, 46, 72, 0.92));
    color: #f4f7fb;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.bloc-titol-rrhh {
    display: grid;
    gap: 0.2rem;
}

.tema-rrhh .titol-barra,
.tema-rrhh .titol-seccio {
    font-family: var(--font-base);
    letter-spacing: -0.03em;
}

.tema-rrhh .titol-barra {
    margin: 0;
    font-size: clamp(1.45rem, 1.9vw, 2.1rem);
    color: #f7fbff;
}

.tema-rrhh .titol-seccio {
    font-size: clamp(1.12rem, 1.45vw, 1.45rem);
    font-weight: 800;
    color: #11263b;
}

.tema-rrhh .text-secundari {
    color: rgba(33, 53, 74, 0.72);
    font-size: 0.92rem;
}

.tema-rrhh .barra-rrhh .text-secundari {
    color: rgba(222, 232, 242, 0.84);
}

.tema-rrhh .bloc-sessio-rrhh {
    display: grid;
    gap: 0.15rem;
    text-align: right;
}

.tema-rrhh .temps-actual-rrhh {
    margin: 0;
    color: rgba(222, 232, 242, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
}

.tema-rrhh .accions-barra {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tema-rrhh .navegacio-rrhh {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.tema-rrhh .enllac-nav {
    padding: 0.66rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(220, 231, 241, 0.88);
    box-shadow: none;
    font-weight: 800;
    font-size: 0.84rem;
}

.tema-rrhh .enllac-nav[aria-current="page"] {
    background: linear-gradient(135deg, #1d6f7a, #1e8d95);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f8fdff;
}

.tema-rrhh .contingut-rrhh {
    display: grid;
    gap: 1rem;
}

.tema-rrhh .peu-rrhh {
    margin-top: 0.3rem;
    padding: 0.9rem 0 0.15rem;
}

.tema-rrhh .contingut-peu-rrhh {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    padding: 1rem 1.15rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    color: rgba(217, 227, 238, 0.78);
    text-align: center;
}

.tema-rrhh .grup-logos-peu-rrhh {
    gap: 0.55rem;
    justify-content: center;
}

.tema-rrhh .grup-logos-peu-rrhh .enllac-logo-rrhh {
    min-width: 76px;
    min-height: 48px;
    padding: 0.45rem 0.8rem;
    border-radius: 14px;
}

.tema-rrhh .grup-logos-peu-rrhh .logo-entitat-rrhh {
    max-width: 120px;
    max-height: 30px;
}

.tema-rrhh .grup-logos-peu-rrhh .logo-entitat-rrhh-osonia {
    max-height: 24px;
}

.tema-rrhh .grup-logos-peu-rrhh .logo-entitat-rrhh-ccosona {
    max-height: 28px;
}

.tema-rrhh .text-peu-rrhh {
    margin: 0;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.tema-rrhh .text-peu-rrhh a {
    color: #f2f7fc;
    text-decoration: none;
    font-weight: 700;
}

.tema-rrhh .text-peu-rrhh a:hover,
.tema-rrhh .text-peu-rrhh a:focus-visible {
    text-decoration: underline;
}

.tema-rrhh .missatge {
    box-shadow: none;
}

.tema-rrhh .panell-rrhh {
    overflow: hidden;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96));
    box-shadow: 0 20px 48px rgba(4, 15, 25, 0.24);
    font-size: 0.9rem;
}

.tema-rrhh .panell::before {
    height: 6px;
    background: linear-gradient(90deg, #1d6f7a, #2a72bc, #d87833);
}

.tema-rrhh .panell-login-rrhh {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 760px;
    margin: 0 auto;
    min-height: auto;
    padding: 0;
    overflow: hidden;
}

.hero-login-rrhh {
    position: relative;
    overflow: hidden;
    padding: 1.9rem 2.2rem 1.7rem;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    background:
        radial-gradient(circle at top right, rgba(90, 160, 221, 0.24), transparent 14rem),
        linear-gradient(160deg, #11263b 0%, #173653 52%, #1a4162 100%);
    color: #eff7ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-login-rrhh::after {
    display: none;
}

.titol-login-rrhh {
    margin: 0;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.text-login-rrhh {
    margin: 0;
    max-width: 42rem;
    color: rgba(230, 240, 248, 0.84);
    line-height: 1.6;
}

.caixa-login-rrhh {
    padding: 2rem 2.2rem 2.2rem;
    display: grid;
    align-content: center;
    gap: 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
}

.titol-formulari-login-rrhh {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #11263b;
}

.formulari-login-rrhh {
    gap: 0.9rem;
}

.text-secundari-login-rrhh {
    margin: -0.1rem 0 0.35rem;
}

.tema-rrhh .camp-text,
.tema-rrhh select.camp-text {
    min-height: 2.55rem;
    padding: 0.62rem 0.8rem;
    border: 1px solid rgba(17, 38, 59, 0.14);
    border-radius: 14px;
    background: #f9fbfd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.tema-rrhh .camp-text:focus-visible,
.tema-rrhh select.camp-text:focus-visible {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.96),
        0 0 0 6px rgba(42, 114, 188, 0.28);
}

.tema-rrhh .etiqueta-camp {
    color: #11263b;
    font-size: 0.8rem;
    font-weight: 700;
}

.tema-rrhh button,
.tema-rrhh .boto {
    min-height: 2.5rem;
    padding: 0.62rem 0.95rem;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 700;
}

.tema-rrhh .boto-principal {
    background: linear-gradient(135deg, #173653, #225279);
    color: #f8fcff;
    border-color: rgba(255, 255, 255, 0.06);
}

.tema-rrhh .boto-secundari {
    background: linear-gradient(180deg, #ffffff, #eef4f8);
    color: #17304b;
    border-color: rgba(17, 38, 59, 0.12);
}

.tema-rrhh .boto-login-rrhh {
    min-height: 2.9rem;
    margin-top: 0.4rem;
    width: 100%;
}

.tema-rrhh .graella-indicadors {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.tema-rrhh .targeta-indicador {
    padding: 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(17, 38, 59, 0.08);
    background:
        linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    box-shadow: 0 14px 32px rgba(15, 32, 48, 0.08);
}

.tema-rrhh .targeta-indicador::before {
    background: linear-gradient(90deg, #1d6f7a, #2a72bc);
}

.tema-rrhh .etiqueta-indicador {
    color: #617386;
    font-size: 0.82rem;
}

.tema-rrhh .valor-indicador {
    font-family: var(--font-base);
    font-size: 1.95rem;
    font-weight: 900;
    color: #10263a;
}

.tema-rrhh .capsalera-seccio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.tema-rrhh .formulari-filtres {
    padding: 0.75rem;
    border-radius: 16px;
    background: #eef4f8;
    border: 1px solid rgba(17, 38, 59, 0.08);
}

.tema-rrhh .formulari-filtres-fitxatges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 0.9rem;
    align-items: flex-end;
}

.tema-rrhh .formulari-filtres-fitxatges .camp-filtre {
    flex: 0 1 190px;
    max-width: 210px;
    gap: 0.32rem;
}

.tema-rrhh .grup-botons-filtres-fitxatges {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tema-rrhh .grup-botons-filtres-fitxatges .boto {
    width: auto;
    min-width: 0;
}

.tema-rrhh .taula-responsive {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(17, 38, 59, 0.08);
    background: #fbfdff;
}

.tema-rrhh .taula-llistat {
    background: transparent;
}

.tema-rrhh .taula-llistat th,
.tema-rrhh .taula-llistat td {
    padding: 0.68rem 0.72rem;
    border-bottom: 1px solid #dde6ef;
    color: #1c2e42;
    font-size: 0.84rem;
}

.tema-rrhh .taula-llistat th {
    background: linear-gradient(180deg, #f5f8fb, #eaf1f7);
    color: #10263a;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tema-rrhh .taula-llistat tbody tr:nth-child(even) {
    background: #f8fbfd;
}

.tema-rrhh .taula-llistat tbody tr:hover {
    background: #eef5fb;
}

.tema-rrhh .grup-accions-taula {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tema-rrhh .grup-accions-fitxatge form {
    margin: 0;
}

.tema-rrhh .grup-camp-rrhh-fitxatge {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.tema-rrhh .resum-sollicitud-rrhh {
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: #f8f9fa;
    color: #212529;
}

.tema-rrhh .navegacio-paginacio {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.tema-rrhh .panell-rrhh-estret {
    max-width: 1100px;
    margin: 0;
}

.tema-rrhh {
    --color-rrhh-primari: #e60000;
    --color-rrhh-primari-fosc: #af0000;
    --color-rrhh-negre: #212529;
    --color-rrhh-secundari: #6c757d;
    --color-rrhh-clar: #f8f9fa;
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    color: #212529;
    background:
        radial-gradient(circle at top left, rgba(230, 0, 0, 0.06), transparent 19rem),
        radial-gradient(circle at top right, rgba(175, 0, 0, 0.08), transparent 21rem),
        linear-gradient(180deg, #ffffff 0%, #f8f9fa 56%, #f3f4f6 100%);
}

.tema-rrhh::before {
    background: radial-gradient(circle, rgba(230, 0, 0, 0.08), transparent 68%);
}

.tema-rrhh::after {
    border-color: rgba(33, 37, 41, 0.08);
}

.tema-rrhh .capcalera-corporativa-rrhh,
.tema-rrhh .barra-rrhh {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(33, 37, 41, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    color: #212529;
    box-shadow: 0 16px 34px rgba(33, 37, 41, 0.08);
}

.tema-rrhh .capcalera-corporativa-rrhh::before,
.tema-rrhh .barra-rrhh::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--color-rrhh-primari), #c40000, var(--color-rrhh-primari-fosc));
}

.tema-rrhh .marca-superior-rrhh {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.tema-rrhh .logo-capcalera-rrhh {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain;
}

.tema-rrhh .logo-capcalera-rrhh-panell {
    height: 52px;
}

.tema-rrhh .eyebrow-rrhh,
.tema-rrhh .subcapcalera-rrhh {
    color: var(--color-rrhh-secundari);
    letter-spacing: 0.05em;
}

.tema-rrhh .nom-corporatiu-rrhh,
.tema-rrhh .titol-barra {
    color: var(--color-rrhh-negre);
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tema-rrhh .titol-seccio {
    color: #212529;
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tema-rrhh .text-secundari {
    color: var(--color-rrhh-secundari);
}

.tema-rrhh .barra-rrhh .text-secundari,
.tema-rrhh .temps-actual-rrhh {
    color: var(--color-rrhh-secundari);
}

.tema-rrhh-login .capcalera-corporativa-rrhh {
    justify-content: center;
}

.tema-rrhh-login .marca-corporativa-rrhh {
    width: 100%;
    justify-items: center;
    text-align: center;
}

.tema-rrhh .navegacio-rrhh {
    padding: 0.35rem;
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 22px rgba(33, 37, 41, 0.05);
}

.tema-rrhh .enllac-nav {
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    color: #495057;
}

.tema-rrhh .enllac-nav[aria-current="page"] {
    background: linear-gradient(135deg, var(--color-rrhh-primari), var(--color-rrhh-primari-fosc));
    border-color: rgba(175, 0, 0, 0.2);
    color: #ffffff;
}

.tema-rrhh .peu-rrhh {
    margin-top: 0.45rem;
}

.tema-rrhh .contingut-peu-rrhh {
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px rgba(33, 37, 41, 0.06);
    color: #6c757d;
}

.tema-rrhh .text-peu-rrhh a {
    color: var(--color-rrhh-primari);
}

.tema-rrhh .enllac-logo-rrhh-fosc {
    border-color: rgba(33, 37, 41, 0.12);
    background: linear-gradient(180deg, #212529, #343a40);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(33, 37, 41, 0.14);
}

.tema-rrhh .enllac-logo-rrhh-clar {
    border-color: rgba(33, 37, 41, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 22px rgba(33, 37, 41, 0.06);
}

.tema-rrhh .enllac-logo-rrhh:hover,
.tema-rrhh .enllac-logo-rrhh:focus-visible {
    box-shadow:
        0 0 0 4px rgba(230, 0, 0, 0.12),
        0 12px 24px rgba(33, 37, 41, 0.12);
}

.tema-rrhh .panell-rrhh,
.tema-rrhh .caixa-login-rrhh {
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 249, 250, 0.99));
    box-shadow: 0 18px 40px rgba(33, 37, 41, 0.06);
    color: #212529;
}

.tema-rrhh .panell::before {
    background: linear-gradient(90deg, var(--color-rrhh-primari), #c60000, var(--color-rrhh-primari-fosc));
}

.tema-rrhh .hero-login-rrhh {
    background:
        radial-gradient(circle at top right, rgba(230, 0, 0, 0.08), transparent 13rem),
        linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
    color: #212529;
    border-bottom: 1px solid rgba(33, 37, 41, 0.06);
}

.tema-rrhh .text-login-rrhh,
.tema-rrhh .text-secundari-login-rrhh {
    color: #6c757d;
}

.tema-rrhh .titol-formulari-login-rrhh {
    color: #212529;
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}

.tema-rrhh .camp-text,
.tema-rrhh select.camp-text {
    border: 1px solid rgba(33, 37, 41, 0.12);
    background: #ffffff;
}

.tema-rrhh .camp-text:focus-visible,
.tema-rrhh select.camp-text:focus-visible {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.96),
        0 0 0 6px rgba(230, 0, 0, 0.18);
}

.tema-rrhh .etiqueta-camp {
    color: #212529;
}

.tema-rrhh .boto-principal {
    background: linear-gradient(135deg, var(--color-rrhh-primari), var(--color-rrhh-primari-fosc));
    color: #ffffff;
    border-color: rgba(175, 0, 0, 0.16);
    box-shadow: 0 10px 22px rgba(230, 0, 0, 0.16);
}

.tema-rrhh .boto-secundari {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    color: #495057;
    border-color: rgba(33, 37, 41, 0.12);
}

.tema-rrhh .targeta-indicador {
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 14px 28px rgba(33, 37, 41, 0.05);
}

.tema-rrhh .targeta-indicador::before {
    background: linear-gradient(90deg, var(--color-rrhh-primari), var(--color-rrhh-primari-fosc));
}

.tema-rrhh .etiqueta-indicador {
    color: #6c757d;
}

.tema-rrhh .valor-indicador {
    color: #212529;
}

.tema-rrhh .formulari-filtres {
    background: #f8f9fa;
    border: 1px solid rgba(33, 37, 41, 0.08);
}

.tema-rrhh .taula-responsive {
    border: 1px solid rgba(33, 37, 41, 0.08);
    background: #ffffff;
}

.tema-rrhh .taula-llistat th {
    background: linear-gradient(180deg, #fff5f5, #f8e4e4);
    color: #212529;
}

.tema-rrhh .taula-llistat td {
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}

.tema-rrhh .taula-llistat tbody tr:nth-child(even) {
    background: #fcfcfd;
}

.tema-rrhh .taula-llistat tbody tr:hover {
    background: #fff2f2;
}

@media (min-width: 1181px) {
    .tema-fitxatge .titol-pantalla-inici,
    .tema-fitxatge .titol-pantalla-linia-unica,
    .tema-fitxatge .missatge-info-inici,
    .tema-fitxatge .missatge-central-linia-unica {
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 1180px) {
    .tema-fitxatge .contenidor-app {
        align-items: stretch;
        padding: 1rem 1.15rem 1.4rem;
    }

    .tema-fitxatge .panell-fitxatge {
        padding: 1.35rem;
        gap: 0.95rem;
    }

    .tema-fitxatge .titol-pantalla {
        max-width: none;
        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1.08;
    }

    .tema-fitxatge .subtitol-pantalla,
    .tema-fitxatge .missatge-info-inici,
    .tema-fitxatge .text-ajuda {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .tema-fitxatge .boto-gegant {
        min-height: 5.8rem;
        padding: 1.25rem;
        font-size: clamp(1.18rem, 2.7vw, 1.58rem);
    }

    .tema-fitxatge .camp-pin {
        min-height: 4.8rem;
        font-size: clamp(1.55rem, 4.2vw, 1.85rem);
        letter-spacing: 0.24rem;
    }

    .tema-fitxatge .titol-pantalla-inici,
    .tema-fitxatge .titol-pantalla-linia-unica,
    .tema-fitxatge .missatge-info-inici,
    .tema-fitxatge .missatge-central-linia-unica {
        white-space: normal;
        overflow: visible;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 17px;
    }

    body::before,
    body::after {
        display: none;
    }

    .capcalera-corporativa-fitxatge {
        padding: 1rem 1.25rem 0;
    }

    .logo-capcalera-fitxatge {
        max-width: min(62vw, 290px);
        max-height: 40px;
    }

    .tema-fitxatge .panell-fitxatge {
        padding: 1.4rem;
        gap: 1rem;
    }

    .tema-fitxatge .grup-botons-principal {
        grid-template-columns: 1fr;
    }

    .tema-fitxatge .grup-botons-confirmacio-usuari {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 1rem;
    }

    .tema-fitxatge .resum-public-sollicituds,
    .tema-fitxatge .dades-sollicitud-usuari {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tema-fitxatge .boto-gegant {
        min-height: 6rem;
        font-size: clamp(1.28rem, 4vw, 1.72rem);
    }

    .tema-fitxatge .titol-pantalla-inici,
    .tema-fitxatge .titol-pantalla-linia-unica,
    .tema-fitxatge .missatge-info-inici,
    .tema-fitxatge .missatge-central-linia-unica {
        white-space: normal;
        overflow: visible;
    }

    .barra-rrhh {
        flex-direction: column;
        align-items: flex-start;
    }

    .tema-rrhh .capcalera-corporativa-rrhh,
    .tema-rrhh .barra-rrhh,
    .tema-rrhh .capsalera-seccio {
        flex-direction: column;
        align-items: flex-start;
    }

    .tema-rrhh .marca-superior-rrhh {
        width: 100%;
    }

    .tema-rrhh-login .capcalera-corporativa-rrhh {
        align-items: center;
    }

    .tema-rrhh .grup-logos-rrhh {
        justify-content: flex-start;
    }

    .tema-rrhh .bloc-sessio-rrhh {
        text-align: left;
    }

    .tema-rrhh .contingut-peu-rrhh {
        justify-items: center;
        text-align: center;
    }

    .tema-rrhh .panell-login-rrhh {
        grid-template-columns: 1fr;
    }

    .tema-rrhh .formulari-filtres-fitxatges .camp-filtre {
        flex: 1 1 160px;
        max-width: none;
    }

    .tema-rrhh .grup-camp-rrhh-fitxatge {
        grid-template-columns: 1fr;
    }

    .titol-pantalla {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .capcalera-corporativa-fitxatge {
        padding: 0.85rem 1rem 0;
    }

    .marca-corporativa-fitxatge {
        padding: 0.75rem 0.9rem;
        border-radius: 20px;
    }

    .logo-capcalera-fitxatge {
        max-width: min(70vw, 250px);
        max-height: 34px;
    }

    .tema-fitxatge .titol-pantalla {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
        line-height: 1.04;
    }

    .tema-fitxatge .subtitol-pantalla,
    .tema-fitxatge .missatge-info-inici,
    .tema-fitxatge .text-ajuda {
        font-size: 0.95rem;
    }

    .tema-fitxatge .boto-gegant {
        min-height: 5.4rem;
        padding: 1.2rem;
        font-size: clamp(1.12rem, 5.8vw, 1.45rem);
        border-radius: 22px;
    }

    .tema-fitxatge .camp-pin {
        min-height: 4.5rem;
        font-size: 1.65rem;
        letter-spacing: 0.22rem;
    }

    .tema-fitxatge .contenidor-app,
    .estructura-rrhh {
        padding: 1rem;
    }

    .tema-fitxatge .peu-fitxatge {
        padding: 0 1rem 1rem;
    }

    .grup-camp-gran {
        grid-template-columns: 1fr;
    }

    .grup-botons-confirmacio-usuari {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .resum-public-sollicituds,
    .dades-sollicitud-usuari,
    .grup-botons-secundaris-sollicituds-usuari {
        grid-template-columns: 1fr;
    }

    .capsalera-targeta-sollicitud {
        flex-direction: column;
        align-items: flex-start;
    }

    .teclat-numeric {
        gap: 0.65rem;
    }

    .panell-fitxatge,
    .panell-rrhh {
        padding: 1.25rem;
    }

    .tema-rrhh .caixa-login-rrhh,
    .tema-rrhh .hero-login-rrhh {
        padding: 1.5rem;
    }
}

.tema-rrhh {
    background:
        radial-gradient(circle at top left, rgba(214, 52, 71, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(22, 100, 146, 0.18), transparent 30%),
        linear-gradient(180deg, #f4f0ea 0%, #efe7dd 48%, #f9f6f1 100%);
    color: #1f2933;
}

.tema-rrhh .estructura-rrhh {
    width: min(1440px, calc(100vw - 2.4rem));
    gap: 1.35rem;
}

.tema-rrhh .barra-rrhh {
    position: relative;
    overflow: hidden;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.45rem 1.6rem;
    border: 1px solid rgba(120, 96, 77, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 239, 0.88)),
        linear-gradient(120deg, rgba(186, 47, 73, 0.12), rgba(16, 90, 132, 0.08));
    box-shadow: 0 26px 60px rgba(83, 61, 42, 0.14);
}

.tema-rrhh .barra-rrhh::after {
    content: '';
    position: absolute;
    inset: auto -8% -35% auto;
    width: 240px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186, 47, 73, 0.12), rgba(186, 47, 73, 0));
    pointer-events: none;
}

.tema-rrhh .bloc-titol-rrhh {
    display: grid;
    gap: 0.22rem;
}

.tema-rrhh .titol-barra {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.tema-rrhh .subcapcalera-rrhh,
.tema-rrhh .eyebrow-rrhh {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a2743;
}

.tema-rrhh .eyebrow-rrhh::before,
.tema-rrhh .subcapcalera-rrhh::before {
    content: '';
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #bf3957, #146488);
    box-shadow: 0 0 0 5px rgba(191, 57, 87, 0.12);
}

.tema-rrhh .accions-barra {
    margin-left: auto;
    align-items: center;
    gap: 1rem;
}

.tema-rrhh .targeta-sessio-rrhh {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(120, 96, 77, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tema-rrhh .navegacio-rrhh {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 0;
    background: transparent;
    border: 0;
}

.tema-rrhh .enllac-nav {
    display: grid;
    gap: 0.18rem;
    padding: 1rem 1.1rem;
    min-height: 92px;
    border: 1px solid rgba(120, 96, 77, 0.15);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(69, 52, 37, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tema-rrhh .enllac-nav:hover,
.tema-rrhh .enllac-nav:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(191, 57, 87, 0.28);
    box-shadow: 0 18px 36px rgba(69, 52, 37, 0.12);
}

.tema-rrhh .enllac-nav-etiqueta {
    font-size: 1.02rem;
    font-weight: 800;
    color: #1b2730;
}

.tema-rrhh .enllac-nav-descripcio {
    font-size: 0.86rem;
    color: #6f6258;
}

.tema-rrhh .enllac-nav[aria-current="page"] {
    border-color: rgba(191, 57, 87, 0.42);
    background: linear-gradient(135deg, rgba(191, 57, 87, 0.96), rgba(117, 32, 52, 0.96));
    box-shadow: 0 22px 44px rgba(134, 36, 59, 0.26);
}

.tema-rrhh .enllac-nav[aria-current="page"] .enllac-nav-etiqueta,
.tema-rrhh .enllac-nav[aria-current="page"] .enllac-nav-descripcio {
    color: #fff8f6;
}

.tema-rrhh .contingut-rrhh {
    gap: 1.35rem;
}

.tema-rrhh .panell-rrhh,
.tema-rrhh .caixa-login-rrhh {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(120, 96, 77, 0.14);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 243, 236, 0.94));
    box-shadow: 0 24px 54px rgba(77, 56, 39, 0.1);
}

.tema-rrhh .panell-rrhh::before,
.tema-rrhh .caixa-login-rrhh::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #bf3957, #156889, #d48b39);
}

.tema-rrhh .capsalera-seccio {
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.tema-rrhh .titol-seccio {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    letter-spacing: -0.035em;
    color: #1c2730;
}

.tema-rrhh .dashboard-rrhh-hero {
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 30%),
        linear-gradient(135deg, rgba(255, 248, 244, 0.98), rgba(246, 238, 228, 0.92) 56%, rgba(234, 242, 246, 0.9));
}

.tema-rrhh .dashboard-rrhh-portada {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 1.2rem;
    padding: 2rem;
}

.tema-rrhh .titol-dashboard-rrhh {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.tema-rrhh .dashboard-rrhh-text {
    max-width: 58ch;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #63574c;
}

.tema-rrhh .dashboard-rrhh-marcadors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.tema-rrhh .resum-destacat-rrhh {
    display: grid;
    gap: 0.35rem;
    padding: 1.05rem 1.1rem;
    border: 1px solid rgba(120, 96, 77, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
}

.tema-rrhh .resum-destacat-rrhh-alerta {
    background: linear-gradient(135deg, rgba(191, 57, 87, 0.12), rgba(255, 255, 255, 0.82));
    border-color: rgba(191, 57, 87, 0.2);
}

.tema-rrhh .resum-destacat-etiqueta {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a6b60;
}

.tema-rrhh .resum-destacat-valor {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1;
    color: #17222c;
}

.tema-rrhh .dashboard-rrhh-accions {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 1.3rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(22, 100, 136, 0.96), rgba(15, 74, 101, 0.98));
    color: #f6f7f9;
    box-shadow: 0 26px 46px rgba(20, 87, 118, 0.22);
}

.tema-rrhh .subtitol-panell-rrhh {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.tema-rrhh .dashboard-rrhh-accions-grid {
    display: grid;
    gap: 0.85rem;
}

.tema-rrhh .targeta-accio-rrhh {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.tema-rrhh .targeta-accio-rrhh:hover,
.tema-rrhh .targeta-accio-rrhh:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
}

.tema-rrhh .targeta-accio-titol {
    font-weight: 800;
    font-size: 1rem;
}

.tema-rrhh .targeta-accio-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.tema-rrhh .graella-indicadors-rrhh {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tema-rrhh .targeta-indicador-rrhh {
    padding: 1.1rem 1.15rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 234, 0.92)),
        linear-gradient(120deg, rgba(191, 57, 87, 0.08), rgba(21, 104, 137, 0.05));
    border: 1px solid rgba(120, 96, 77, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tema-rrhh .targeta-indicador-rrhh::before {
    width: 52px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #bf3957, #156889);
}

.tema-rrhh .taula-responsive-rrhh,
.tema-rrhh .taula-responsive {
    border-radius: 24px;
    border: 1px solid rgba(120, 96, 77, 0.12);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tema-rrhh .taula-llistat-rrhh,
.tema-rrhh .taula-llistat {
    border-collapse: separate;
    border-spacing: 0;
}

.tema-rrhh .taula-llistat th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #725f54;
    background: linear-gradient(180deg, #f7f2ec, #efe6db);
}

.tema-rrhh .taula-llistat td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    vertical-align: top;
    color: #26323a;
}

.tema-rrhh .taula-llistat tbody tr:nth-child(even) {
    background: rgba(247, 241, 235, 0.7);
}

.tema-rrhh .taula-llistat tbody tr:hover {
    background: rgba(231, 241, 246, 0.85);
}

.tema-rrhh .formulari-filtres {
    gap: 0.95rem;
    padding: 1rem;
    border: 1px solid rgba(120, 96, 77, 0.12);
    border-radius: 24px;
    background: rgba(255, 251, 247, 0.74);
}

.tema-rrhh .formulari-filtres-fitxatges .camp-filtre {
    display: grid;
    gap: 0.42rem;
}

.tema-rrhh .camp-text,
.tema-rrhh select.camp-text,
.tema-rrhh .camp-textarea {
    min-height: 52px;
    padding-inline: 1rem;
    border: 1px solid rgba(120, 96, 77, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2933;
}

.tema-rrhh .camp-textarea {
    min-height: 132px;
    padding-block: 0.9rem;
}

.tema-rrhh .etiqueta-camp {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d5c4f;
}

.tema-rrhh .formulari-rrhh {
    gap: 0.9rem;
}

.tema-rrhh .grup-botons-secundaris,
.tema-rrhh .grup-accions-taula,
.tema-rrhh .navegacio-paginacio {
    gap: 0.75rem;
}

.tema-rrhh .boto {
    border-radius: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.tema-rrhh .boto-principal {
    background: linear-gradient(135deg, #bf3957, #982d46);
    border-color: #982d46;
    color: #fff8f6;
}

.tema-rrhh .boto-secundari {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(120, 96, 77, 0.16);
    color: #22303a;
}

.tema-rrhh .boto-perill {
    background: linear-gradient(135deg, #aa2f3e, #882231);
    border-color: #882231;
}

.tema-rrhh .insignia-estat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tema-rrhh .insignia-estat-PENDENT {
    background: rgba(215, 143, 28, 0.14);
    color: #8b5f08;
}

.tema-rrhh .insignia-estat-APROVADA {
    background: rgba(38, 141, 95, 0.15);
    color: #176444;
}

.tema-rrhh .insignia-estat-DENEGADA {
    background: rgba(170, 47, 62, 0.14);
    color: #8a2431;
}

.tema-rrhh .resum-sollicitud-rrhh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem 1.2rem;
    padding: 1.15rem;
    border: 1px solid rgba(120, 96, 77, 0.12);
    border-radius: 24px;
    background: rgba(255, 251, 247, 0.74);
}

.tema-rrhh .resum-sollicitud-rrhh p {
    margin: 0;
    line-height: 1.55;
}

.tema-rrhh .caixa-login-rrhh {
    max-width: 520px;
    margin-inline: auto;
}

.tema-rrhh .formulari-login-rrhh {
    gap: 0.85rem;
}

.tema-rrhh .peu-rrhh {
    padding-top: 0.35rem;
}

.tema-rrhh .contingut-peu-rrhh {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(120, 96, 77, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1080px) {
    .tema-rrhh .navegacio-rrhh {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tema-rrhh .dashboard-rrhh-portada {
        grid-template-columns: 1fr;
    }

    .tema-rrhh .dashboard-rrhh-marcadors {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}

@media (max-width: 760px) {
    .tema-rrhh .estructura-rrhh {
        width: min(100vw - 1.2rem, 100%);
    }

    .tema-rrhh .barra-rrhh {
        padding: 1.2rem;
    }

    .tema-rrhh .accions-barra {
        width: 100%;
        margin-left: 0;
        align-items: stretch;
    }

    .tema-rrhh .targeta-sessio-rrhh {
        width: 100%;
    }

    .tema-rrhh .navegacio-rrhh {
        grid-template-columns: 1fr;
    }

    .tema-rrhh .dashboard-rrhh-portada,
    .tema-rrhh .panell-rrhh,
    .tema-rrhh .caixa-login-rrhh {
        padding: 1.25rem;
    }

    .tema-rrhh .capsalera-seccio {
        align-items: flex-start;
    }

    .tema-rrhh .resum-sollicitud-rrhh {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
