/* TIPOGRAFIES */

/*POPPINS I VARIANTS */
@font-face {
    font-family: "Poppins-Black";
    src:url('/fonts/poppins/Poppins-Black.ttf') format('truetype'), url('/fonts/poppins/Poppins-Black.woff') format('woff');
}
@font-face {
    font-family: "Poppins-BlackItalic";
    src:url('/fonts/poppins/Poppins-BlackItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-BlackItalic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-Bold";
    src:url('/fonts/poppins/Poppins-Bold.ttf') format('truetype'), url('/fonts/poppins/Poppins-Bold.woff') format('woff');
}
@font-face {
    font-family: "Poppins-BoldItalic";
    src:url('/fonts/poppins/Poppins-BoldItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-BoldItalic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-ExtraBold";
    src:url('/fonts/poppins/Poppins-ExtraBold.ttf') format('truetype'), url('/fonts/poppins/Poppins-ExtraBold.woff') format('woff');
}
@font-face {
    font-family: "Poppins-ExtraBoldItalic";
    src:url('/fonts/poppins/Poppins-ExtraBoldItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-ExtraBoldItalic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-ExtraLight";
    src:url('/fonts/poppins/Poppins-ExtraLight.ttf') format('truetype'), url('/fonts/poppins/Poppins-ExtraLight.woff') format('woff');
}
@font-face {
    font-family: "Poppins-ExtraLightItalic";
    src:url('/fonts/poppins/Poppins-ExtraLightItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-ExtraLightItalic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-Light";
    src:url('/fonts/poppins/Poppins-Light.ttf') format('truetype'), url('/fonts/poppins/Poppins-Light.woff') format('woff');
}
@font-face {
    font-family: "Poppins-Italic";
    src:url('/fonts/poppins/Poppins-Italic.ttf') format('truetype'), url('/fonts/poppins/Poppins-Italic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-LightItalic";
    src:url('/fonts/poppins/Poppins-LightItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-LightItalic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-Medium";
    src:url('/fonts/poppins/Poppins-Medium.ttf') format('truetype'), url('/fonts/poppins/Poppins-Medium.woff') format('woff');
}
@font-face {
    font-family: "Poppins-MediumItalic";
    src:url('/fonts/poppins/Poppins-MediumItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-MediumItalic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-Regular";
    src:url('/fonts/poppins/Poppins-Regular.ttf') format('truetype'), url('/fonts/poppins/Poppins-Regular.woff') format('woff');
}
@font-face {
    font-family: "Poppins-SemiBold";
    src:url('/fonts/poppins/Poppins-SemiBold.ttf') format('truetype'), url('/fonts/poppins/Poppins-SemiBold.woff') format('woff');
}
@font-face {
    font-family: "Poppins-SemiBoldItalic";
    src:url('/fonts/poppins/Poppins-SemiBoldItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-SemiBoldItalic.woff') format('woff');
}
@font-face {
    font-family: "Poppins-Thin";
    src:url('/fonts/poppins/Poppins-Thin.ttf') format('truetype'), url('/fonts/poppins/Poppins-Thin.woff') format('woff');
}
@font-face {
    font-family: "Poppins-ThinItalic";
    src:url('/fonts/poppins/Poppins-ThinItalic.ttf') format('truetype'), url('/fonts/poppins/Poppins-ThinItalic.woff') format('woff');
}
.poppins-bk{
    font-family: Poppins-Black !important;
}
.poppins-bki{
    font-family: Poppins-BlackItalic;
}
.poppins-b{
    font-family: Poppins-Bold !important;
}
.poppins-bi{
    font-family: Poppins-BoldItalic;
}
.poppins-eb{
    font-family: Poppins-ExtraBold;
}
.poppins-ebi{
    font-family: Poppins-ExtraBoldItalic;
}
.poppins-el{
    font-family: Poppins-ExtraLight;
}
.poppins-l{
    font-family: Poppins-Light !important;
    font-weight: none !important;
}
.poppins-i{
    font-family: Poppins-Italic;
    font-weight: normal !important;
}
.poppins-r{
    font-family: Poppins-Regular;
    font-weight: normal !important;
}
.poppins-m{
    font-family: Poppins-Medium;
    font-weight: normal !important;
}
.poppins-t{
    font-family: Poppins-Thin;
    font-weight: normal !important;
}
/* END TIPOGRAFIES */

#btn-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #243f41;
    color: white;
    cursor: pointer;
    /* padding: 10px 17px !important; */
    opacity: 0.5;
    border-radius: 50%;
    height: 30px;
    width: 40px;
    height: 40px;
}

.icon-top{
    background-color: rgb(255, 255, 255);
    -webkit-mask: url('/theme/logos/chevron-up-solid.svg') no-repeat center;
    mask: url('/theme/logos/chevron-up-solid.svg') no-repeat center;
    height: 100%;
}

.logo-lsw{
    max-height: 10px !important;
    margin-top: -3px !important;
    margin-left: 10px !important;
}

.items-tabs-menu{
    width:25%;
}

label {
    color: #7c87a6c7;
}

.d-icon{
    right: 5px;
    top: 30px;
}
.posicionar-icon{
    display: flex;
    align-items: center;
    justify-content: center;
}
h3.kt-portlet__head-title > i {
    margin-right: 10px;
}

/* OVERRIDE MAX SIZE */

@media (max-width: 1600px) {
    .items-tabs-menu{
        width:50%;
    }
}

@media (max-width: 1400px) {
    .items-tabs-menu{
        width:45% !important;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199px) {
    .items-tabs-menu{
        width:43% !important;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
    .items-tabs-menu{
        width:42% !important;
    }
}

/*Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
   .items-tabs-menu{
        width:23% !important;
    }

    .kt-login__container {
        position: fixed !important;
        top: 0;
        padding-top: 30px !important;
        width: 85% !important;
    }

    .kt-login__wrapper {
        position: absolute !important;
        left: 0px;
        bottom: 0px;
        display: flex;
        min-height: 80%;
        width: 85% !important;
    }
    #login_bg {
        display: none;
    }

}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .items-tabs-menu{
        width:21% !important;
    }
}

/* END OVERRIDE MAX SIZE */




/* OVERRIDE MIN SIZE */
/* Extra small devices (portrait phones, less than 576px)
    No media query since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 
    
}

/* END OVERRIDE MIN SIZE */


/* FILTRES DELS LLISTATS AL SUBHEADER (header_toolbar) */
.kt-subheader .kt-subheader__toolbar .bootstrap-select {
    margin-left: 0.5rem;
    vertical-align: middle;
}
.kt-subheader .kt-subheader__toolbar .bootstrap-select > .dropdown-toggle {
    margin-left: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
}
/* Text vertically centred inside the 32px select */
.kt-subheader .kt-subheader__toolbar .bootstrap-select > .dropdown-toggle .filter-option {
    display: flex;
    align-items: center;
}
/* Arrow always on the far right of the select */
.kt-subheader .kt-subheader__toolbar .bootstrap-select > .dropdown-toggle:after {
    margin-left: auto;
    margin-right: 0;
}
/* END FILTRES DELS LLISTATS */

/* COLUMNA D'ACCIONS DELS LLISTATS (3 punts): no ordenable, el més estreta possible i a la dreta */
table.dataTable th.dt-col-actions,
table.dataTable td.dt-col-actions {
    width: 1% !important;
    white-space: nowrap;
    text-align: right;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}
table.dataTable thead th.dt-col-actions:before,
table.dataTable thead th.dt-col-actions:after,
table.dataTable thead > tr > th.dt-col-actions.sorting:before,
table.dataTable thead > tr > th.dt-col-actions.sorting:after,
table.dataTable thead > tr > th.dt-col-actions.sorting_asc:before,
table.dataTable thead > tr > th.dt-col-actions.sorting_asc:after,
table.dataTable thead > tr > th.dt-col-actions.sorting_desc:before,
table.dataTable thead > tr > th.dt-col-actions.sorting_desc:after {
    display: none !important;
    content: none !important;
}
table.dataTable thead > tr > th.dt-col-actions {
    cursor: default !important;
}
table.dataTable td.dt-col-actions .dropdown-inline .btn {
    margin: 0;
}
/* END COLUMNA D'ACCIONS */

/* SWITCH PASTILLA (Bootstrap custom-switch): verd = sí, gris = no */
.switch-actiu .custom-control-label { cursor: pointer; }
.switch-actiu .custom-control-label::before {
    background-color: #e4e6ef;
    border-color: #e4e6ef;
}
.switch-actiu .custom-control-label::after { background-color: #fff; }
.switch-actiu .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #1dc9b7;
    border-color: #1dc9b7;
}
.switch-actiu .custom-control-input:focus ~ .custom-control-label::before { box-shadow: none; }
.switch-actiu .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: #e4e6ef; }
/* Larger size than Bootstrap's default (track 2.75rem x 1.5rem) */
.switch-actiu.custom-switch { min-height: 1.5rem; padding-left: 3.5rem; }
.switch-actiu .custom-control-label { line-height: 1.5rem; padding-top: 0; }
.switch-actiu.custom-switch .custom-control-label::before {
    top: 0;
    left: -3.5rem;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 1.5rem;
}
.switch-actiu.custom-switch .custom-control-label::after {
    top: 2px;
    left: calc(-3.5rem + 2px);
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    border-radius: 1.5rem;
}
.switch-actiu.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1.25rem);
}
/* END SWITCH PASTILLA */

/* LOGOUT AL HEADER: icona power-off, vermella en passar el ratolí */
.kt-header__topbar .kt-header__topbar-icon--logout {
    align-self: center; /* the topbar wrapper is align-items: stretch; centre it like the name */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color .2s, color .2s;
}
.kt-header__topbar .kt-header__topbar-icon--logout i { font-size: 1.1rem; }
.kt-header__topbar .kt-header__topbar-icon--logout:hover { background-color: rgba(253, 57, 122, .12); }
.kt-header__topbar .kt-header__topbar-icon--logout:hover i { color: #fd397a; }
/* END LOGOUT AL HEADER */

/* CAPÇALERA DE LES TAULES DELS LLISTATS: text gris clar i sense negreta */
table.dataTable thead th,
table.dataTable thead td,
.kt-portlet .table thead th {
    color: #cfcfcf !important;
    font-weight: 400 !important;
}
/* END CAPÇALERA DE LES TAULES */

/* TORNAR AL PERFIL D'ADMINISTRADOR (SaaS "actuar com"): icona destacada al header */
.kt-header__topbar .kt-header__topbar-icon--impersonate {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: background-color .2s;
}
.kt-header__topbar .kt-header__topbar-icon--impersonate i { font-size: 1.1rem; color: #ffb822; }
.kt-header__topbar .kt-header__topbar-icon--impersonate:hover { background-color: rgba(255, 255, 255, .08); }
/* END TORNAR AL PERFIL */

/* SELECTOR D'IDIOMA AL HEADER (CA / ES), a l'esquerra del nom */
.kt-header__topbar .lsw-langs {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 0.5rem;
    padding: 2px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, .04);
}
.kt-header__topbar .lsw-langs__item {
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #959cb6;
    line-height: 1.2;
}
.kt-header__topbar .lsw-langs__item:hover { color: var(--brand-color); text-decoration: none; }
.kt-header__topbar .lsw-langs__item--active,
.kt-header__topbar .lsw-langs__item--active:hover {
    background-color: #fff;
    color: #48465b;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
/* END SELECTOR D'IDIOMA */

/* TAULES DINS DE POPUPS (p. ex. "actuar com"): mateix format de capçalera que els llistats i files centrades */
.modal .table thead th {
    color: #cfcfcf !important;
    font-weight: 400 !important;
    border-top: 0;
}
.modal .table td,
.modal .table th { vertical-align: middle; }
/* END TAULES DINS DE POPUPS */

/* VERSIÓ DE L'APLICACIÓ (peu) I PÀGINA NOVETATS */
.footer-versio{
    margin-left: 10px;
    color: #a2a5b9;
    font-size: 0.9rem;
}
.footer-versio:hover{
    color: var(--brand-color);
    text-decoration: none;
}
.novetats-versio{
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ebedf2;
}
.novetats-versio:last-child{
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.novetats-internes{
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff8e6;
    border-left: 3px solid #ffb822;
}

/* TOAST DE VERSIÓ NOVA: text blanc i botó "Veure novetats" blau fort */
#toast-container > .toast-versio,
#toast-container > .toast-versio .toast-title,
#toast-container > .toast-versio .toast-message{
    color: #ffffff !important;
    opacity: 1;
}
#toast-container > .toast-versio .toast-message{
    margin-top: 0.5rem;
}
#toast-container > .toast-versio .toast-versio-btn{
    background-color: #1b3a8c;
    border-color: #1b3a8c;
    color: #ffffff !important;
    font-weight: 500;
    text-decoration: none;
}
#toast-container > .toast-versio .toast-versio-btn:hover{
    background-color: #142b68;
    border-color: #142b68;
}

/* BLOQUEIG DE PANTALLA: difumina tota la pantalla excepte el botó de desbloquejar */
.screen-lock-overlay{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(30, 30, 45, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.screen-lock-overlay--on{
    display: block;
}
body.screen-locked{
    overflow: hidden;
}
.screen-unlock-btn{
    position: fixed;
    top: 12px;
    right: 60px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #ffffff;
    color: var(--brand-color);
    font-size: 1.2rem;
    box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.35);
    text-decoration: none;
}
.screen-unlock-btn:hover{
    background: var(--brand-color);
    color: #ffffff;
    text-decoration: none;
}

/* LOGO DEL HEADER: centrat verticalment (alçada del logo 20px, al blade) */
.header-logo{
    align-items: center;
    align-self: stretch;
    height: 100%;
    padding-left: 1rem;
}
.header-logo a{
    display: flex;
    align-items: center;
}
.kt-header-mobile__logo a{
    display: flex;
    align-items: center;
}
/* Logo del client a la dreta del nostre: separador vertical, sense fons (decisió de l'usuari) */
.header-logo-client{
    display: flex;
    align-items: center;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .2);
}
.header-logo-client img{
    max-height: 30px;
    max-width: 160px;
}
/* Configuració > Logotip: previsualització */
.client-logo-previsualitzacio{
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-radius: 4px;
    background-color: #f7f8fa;
}
.client-logo-previsualitzacio img{
    max-height: 80px;
    max-width: 100%;
}


/* CAMPS DE DATA (admin.includes.camp_data): calendari amb la font i els colors de l'admin */
.lsw-date .lsw-datepicker{
    background-color: #ffffff;
    cursor: pointer;
}
.lsw-date .input-group-text{
    cursor: pointer;
    color: var(--brand-color);
    background-color: #f7f8fa;
}
.datepicker.dropdown-menu{
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(82, 63, 105, 0.18);
    min-width: 17rem;
}
.datepicker table{
    width: 100%;
}
.datepicker table tr td,
.datepicker table tr th{
    width: 2.4rem;
    height: 2.2rem;
    border-radius: 6px;
    font-weight: 400;
    color: #48465b;
}
.datepicker table tr th.dow{
    color: #a2a5b9;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}
.datepicker table tr th.datepicker-switch{
    font-weight: 600;
    color: #48465b;
}
.datepicker table tr th.prev,
.datepicker table tr th.next{
    color: var(--brand-color);
}
.datepicker table tr td.old,
.datepicker table tr td.new{
    color: #c4c5d6;
}
.datepicker table tr td.day:hover,
.datepicker table tr td span:hover,
.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover,
.datepicker table tr th.datepicker-switch:hover,
.datepicker table tr th.today:hover,
.datepicker table tr th.clear:hover{
    background: #f0f3ff;
    color: var(--brand-color);
}
.datepicker table tr td.today{
    background: #f0f3ff !important;
    color: var(--brand-color) !important;
    font-weight: 600;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover{
    background: var(--brand-color) !important;
    color: #ffffff !important;
    text-shadow: none;
}
.datepicker table tr td span{
    border-radius: 6px;
    height: 2.6rem;
    line-height: 2.6rem;
}
.datepicker tfoot tr th.today,
.datepicker tfoot tr th.clear{
    padding-top: 0.5rem;
    color: var(--brand-color);
    font-weight: 500;
}

/* CONFIGURACIÓ > MYDOCUMENTIUM: valors connectats en només lectura amb el botó a la dreta */
.mydoc-fila{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    background: #f7f8fa;
}
.mydoc-avis{
    margin-bottom: 1rem;
}
.mydoc-botons{
    gap: 0.5rem;
}
.mydoc-estat{
    padding: 0.45rem 0.75rem;
    font-weight: 500;
}

/* SUBHEADER (breadcrumb + barra d'eines) SEMPRE VISIBLE
   Escriptori: body.kt-subheader--fixed (Metronic el fixa sota el header, amb fons blanc i ombra).
   Mòbil/tauleta: Metronic no el fixa, ho fem amb sticky sota el header mòbil (50px). */
@media (max-width: 1024px) {
    .kt-subheader--fixed .kt-subheader{
        position: sticky;
        top: 50px;
        z-index: 95;
        background-color: #ffffff;
        box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.08);
    }
}

/* NORMA (vista del client: arbre, apartat, apartats que apliquen, menú). Vegeu docs/admin-ui.md */
.norma-codi{
    display: inline-block;
    min-width: 2.2rem;
    color: var(--brand-color);
    font-weight: 600;
}
.norma-arbre, .norma-arbre ul{
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.norma-arbre ul{
    padding-left: 1.6rem;
    border-left: 1px dashed #ebedf2;
    margin-left: .6rem;
}
.norma-arbre .norma-node{
    padding: .2rem 0;
}
.norma-arbre .norma-node > a{
    color: #48465b;
}
.norma-arbre .norma-node > a:hover{
    color: var(--brand-color);
}
.norma-arbre .norma-capitol{
    padding-top: .6rem;
}
.norma-arbre .norma-capitol > a{
    font-weight: 600;
    font-size: 1.05rem;
}
.norma-arbre .kt-badge{
    margin-left: .4rem;
}
.norma-no-aplica, .norma-no-aplica > a{
    opacity: .5;
}
.norma-apartat-titol{
    font-weight: 500;
    margin-bottom: 0;
}
.norma-descripcio{
    font-size: 1.05rem;
    line-height: 1.6;
}
.norma-contingut{
    padding: 1rem 1.25rem;
    border-radius: 4px;
    background-color: #f7f8fa;
}
.norma-config-fila{
    min-height: 38px;
    border-bottom: 1px solid #f0f1f5;
}
.norma-config-fila .custom-switch{
    margin: .4rem 0;
}
.norma-config-fila .camp-motiu{
    max-width: 360px;
}
/* Menú: codi del capítol davant del títol (dins "Apartats de la norma"); apartats que no apliquen en gris */
.kt-aside-menu .kt-menu__nav .kt-menu__link .norma-menu-codi{
    display: inline-block;
    min-width: 1.6rem;
    font-size: .85rem;
    font-weight: 600;
    opacity: .8;
}
.kt-aside-menu .kt-menu__nav .kt-menu__item.norma-menu-no-aplica > .kt-menu__link{
    opacity: .45;
}
.norma-fitxer{
    padding: .75rem 1rem;
    border-radius: 4px;
    background-color: #ffffff;
    border: 1px solid #ebedf2;
}
.norma-fitxer-icona{
    font-size: 1.8rem;
    color: var(--brand-color);
}
/* Últims avisos: cada avís és una fila clicable amb ">" a la dreta */
.norma-avis{
    padding: .9rem 1.5rem;
    border-bottom: 1px solid #f0f1f5;
    color: #48465b;
    transition: background-color .15s;
}
.norma-avis:last-child{ border-bottom: 0; }
.norma-avis:hover{
    background-color: #f7f8fa;
    color: #48465b;
    text-decoration: none;
}
.norma-avis-apartat{ font-weight: 500; }
.norma-avis-meta{
    font-size: .85rem;
    color: #a7abc3;
    margin-top: .1rem;
}
.norma-avis-nota{
    margin-top: .3rem;
    color: #6c7293;
}
.norma-avis-fletxa{
    margin-left: 1rem;
    color: #c7c5d8;
    transition: color .15s, transform .15s;
}
.norma-avis:hover .norma-avis-fletxa{
    color: var(--brand-color);
    transform: translateX(3px);
}
/* Menú: "Apartats de la norma" en una sola línia (lletra una mica més petita) */
.kt-aside-menu .kt-menu__nav .norma-menu-apartats > .kt-menu__link .kt-menu__link-text{
    font-size: .95rem;
    white-space: nowrap;
}
/* Estat de control (fase 2c): etiqueta a l arbre, barra d estat i periodicitat a l apartat */
.norma-arbre .norma-estat-etiqueta{
    font-size: .75rem;
    /* kt-badge--inline has height 0 and takes its height from the padding: set a real one */
    height: auto;
    padding: .2rem .55rem;
    line-height: 1.3;
}
.norma-estat{
    gap: .4rem 0;
}
.norma-periodicitat{
    border: 0;
    border-bottom: 1px dashed #a7abc3;
    background: transparent;
    color: #6c7293;
    cursor: pointer;
}
.norma-registres td{ vertical-align: middle; }
/* Configuració del mòdul: usuaris que reben avisos */
.norma-config-usuari{
    padding: .5rem 0;
    border-bottom: 1px solid #f0f1f5;
}
.norma-config-usuari:last-child{ border-bottom: 0; }
/* END NORMA */

/* COLOR CORPORATIU: turquesa del logo de MyCertificatium (#008577). Vegeu docs/admin-ui.md "Colors".
   Redefineix les variables del tema (theme/base/style.bundle.css, ":root") sense tocar-lo. */
:root{
    --brand-color: #008577;
    --brand-color-shadow: rgb(0 133 119 / 23%);
    --brand-color-hover: #00665b;
    --brand-color-shadow-hover: rgb(0 133 119 / 23%);
    --active-item: #008577;
    --active-item-icon: #00665b;
}
.kt-badge.kt-badge--unified-brand{
    background: rgba(0, 133, 119, .1);
}
/* END COLOR CORPORATIU */

/* PUJADA DE FITXERS (Dropzone, admin.includes.dropzone). Vegeu docs/admin-ui.md "Pujada de fitxers" */
.dropzone.dropzone-brand{
    border-radius: 6px;
    background-color: #ffffff;
    transition: background-color .15s, border-color .15s;
}
.dropzone.dropzone-brand:hover,
.dropzone.dropzone-brand.dz-drag-hover{
    border-color: var(--brand-color);
    background-color: rgba(0, 133, 119, .05);
}
.dropzone .dropzone-msg-title i,
.dropzone .dropzone-msg-desc i{
    color: var(--brand-color);
}
/* Files waiting in the area (manual mode): green "ready" box with the name, size and a red "Treure" with a trash icon */
.dropzone.dropzone-brand .dz-preview{
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 0;
    margin: 8px 0 0;
    padding: 10px 14px;
    border: 1px solid #23804a;
    border-radius: 6px;
    background-color: #e9f6ee;
}
.dropzone.dropzone-brand .dz-preview::before{
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    color: #23804a;
    margin-right: 12px;
}
.dropzone.dropzone-brand .dz-preview .dz-image,
.dropzone.dropzone-brand .dz-preview .dz-success-mark,
.dropzone.dropzone-brand .dz-preview .dz-error-mark{
    display: none;
}
.dropzone.dropzone-brand .dz-preview .dz-details{
    position: static;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 0;
    opacity: 1;
    text-align: left;
    color: #1e5e37;
    font-size: 13px;
    line-height: 1.4;
}
.dropzone.dropzone-brand .dz-preview .dz-details .dz-filename{
    order: 1;
    white-space: normal;
    overflow: visible;
    word-break: break-all;
}
.dropzone.dropzone-brand .dz-preview .dz-details .dz-size{
    order: 2;
    margin: 0;
    font-size: 12px;
}
.dropzone.dropzone-brand .dz-preview .dz-details .dz-filename span,
.dropzone.dropzone-brand .dz-preview .dz-details .dz-size span,
.dropzone.dropzone-brand .dz-preview .dz-details .dz-filename:hover span{
    padding: 0;
    border: 0;
    background: none;
    color: #1e5e37;
}
.dropzone.dropzone-brand .dz-preview .dz-details .dz-filename span{
    font-weight: 600;
}
.dropzone.dropzone-brand .dz-preview .dz-remove{
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 14px;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    color: #c62828;
    text-decoration: none;
    white-space: nowrap;
}
.dropzone.dropzone-brand .dz-preview .dz-remove:hover{
    color: #a01818;
    text-decoration: none;
}
/* Upload progress: thin bar at the bottom of the box, only while sending */
.dropzone.dropzone-brand .dz-preview .dz-progress{
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 3px;
    margin: 0;
    border-radius: 0 0 6px 6px;
    background: transparent;
}
.dropzone.dropzone-brand .dz-preview .dz-progress .dz-upload{
    background: #23804a;
}
.dropzone.dropzone-brand .dz-preview:not(.dz-processing) .dz-progress{
    display: none;
}
/* END PUJADA DE FITXERS */

/* MÒDULS DE QUALITAT (No conformitats, Proveïdors, Satisfacció). Vegeu docs/moduls/iso9001-qualitat.md */
.nc-bloc{
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    background-color: #f7f8fa;
}
.nc-opcio{
    margin-bottom: .5rem;
}
.nc-opcio .form-control{
    max-width: 320px;
}
.qualitat-pdf-iframe{
    width: 100%;
    height: 65vh;
    border: 1px solid #ebedf2;
    border-radius: 4px;
}
.qualitat-pdf-opcions{
    gap: .5rem 0;
}
.satisfaccio-periode{ gap: .5rem 0; }
.satisfaccio-kpi .kt-portlet__body{ padding: 1rem 1.25rem; }
.satisfaccio-kpi-valor{ font-size: 1.6rem; font-weight: 600; color: var(--brand-color); }
.satisfaccio-punt{ display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; }
.satisfaccio-fila{ cursor: pointer; }
.satisfaccio-detall{ background: #f7f8fa; }
.satisfaccio-estrelles{ letter-spacing: 1px; white-space: nowrap; }
.av-criteri{ padding: .35rem 0; border-bottom: 1px solid #ebedf2; }
.av-criteri:last-child{ border-bottom: 0; }
/* END MÒDULS DE QUALITAT */

/* VISOR DE DOCUMENTS (admin.includes.visor): popup a pantalla completa amb previsualització */
.visor-modal .modal-dialog{
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}
.visor-modal .modal-content{
    height: 100vh;
    border: 0;
    border-radius: 0;
}
.visor-modal .modal-header{
    align-items: center;
    padding: .75rem 1.25rem;
}
.visor-capcalera{
    min-width: 0;
}
.visor-capcalera .modal-title{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Info petita sota el nom: versió, dates, caducitat i comentari (retallat, sencer al passar-hi el ratolí) */
.visor-info{
    font-size: .85rem;
    display: flex;
    gap: 0 1rem;
    min-width: 0;
}
.visor-comentari{
    max-width: 45vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}
.visor-modal .modal-body{
    flex: 1 1 auto;
    padding: 0;
    overflow: auto;
    background: #e9ebf1;
}
.visor-cos--pla{
    display: flex;
    align-items: center;
    justify-content: center;
}
.visor-iframe{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.visor-imatge{
    max-width: 95%;
    max-height: 95%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}
.visor-text{
    margin: 1.5rem auto;
    max-width: 1100px;
    padding: 1.5rem;
    background: #ffffff;
    white-space: pre-wrap;
}
.visor-fulls{
    margin: 1rem 1rem 0;
}
.visor-full{
    margin: 1rem;
    background: #ffffff;
    overflow: auto;
}
.visor-full table{
    border-collapse: collapse;
}
.visor-full td{
    border: 1px solid #e2e5ec;
    padding: .25rem .5rem;
    white-space: nowrap;
}
.visor-docx .docx-wrapper{
    background: #e9ebf1;
}
.visor-missatge{
    text-align: center;
    color: #6c7293;
    padding: 3rem 1rem;
}
.visor-missatge i{
    font-size: 3rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
}
/* END VISOR DE DOCUMENTS */

/* DOCUMENTS DE LA NORMA A L'ESCRIPTORI: comptadors per estat (caducats, pendents de revisió, d'aprovació) */
.norma-dashboard-comptador .kt-portlet__body { padding: 18px 22px; }
.norma-dashboard-icona { font-size: 1.9rem; width: 36px; text-align: center; }
.norma-dashboard-numero { font-size: 1.7rem; font-weight: 600; line-height: 1.1; }

/* ESTAT DE L'APARTAT DE LA NORMA: insígnia gran a la dreta del títol (rol Client: clicable per posar-lo a mà) */
.kt-badge.norma-estat-apartat { font-size: 1rem; font-weight: 600; padding: 0.55rem 1.1rem; height: auto; white-space: nowrap; cursor: pointer; }
.kt-badge.norma-estat-apartat--fix { cursor: default; }

/* DRECERES DE DATA (popup de documents): "d'aquí a 15 dies, 1 mes..." sota el camp de caducitat */
.norma-dreceres-data { display: flex; flex-wrap: wrap; gap: 4px; }
.norma-dreceres-data .btn { padding: 0.2rem 0.55rem; font-size: 0.85rem; }

/* MENÚ LATERAL PLEGAT: en passar el ratolí s'obre a 340px (Metronic: 250px) */
@media (min-width: 1025px) {
    .kt-aside--fixed.kt-aside--minimize-hover .kt-aside {
        width: 340px;
    }
}

/* VISOR DE DOCUMENTS: estat del document a l'esquerra del títol */
.visor-modal .visor-estat { font-size: .9rem; font-weight: 600; padding: .45rem .9rem; height: auto; white-space: nowrap; }
.visor-modal .visor-esquerra { min-width: 0; }
