.error {
    font-weight: bold;
    color: red;
}

a.menu-link-ar.active  {
    font-weight: bold;
    color: #02198B;
}

.success_message {
    color: darkgreen;
    font-weight: bold;
}

.error_message {
    color: red;
    font-weight: bold;
}

ul.submenu_reserved {
    list-style: none;
}

.mr-20 {
    margin-right: 20px;
    text-align: center;
    color: red;
}

.succs {
    color:green;
    font-weight: bold;
}

.wrn {
    font-weight: bold;
    color: orange;
}

.neutro {
    font-weight: bold;
    color: lightgrey;
}

.container-img-user {
    max-width: 50%;
}

input.radio-ente[type="radio"] {
    margin-left: 20px !important;
    display: inline;
    position: relative !important;
    width: 20px;
}

div#result_search {
    border: 1px solid lightgrey;
    padding: 5px;
    display: none;
    max-height: 400px;
    overflow: auto;
}

div#result_search ul {
    list-style: none;
}

div#result_search ul li {
    cursor: pointer;
}

.error_check {
    color: red;
    margin-right: 5px;
    visibility: hidden;
}

div.errore_segnalazioni {
    color: red;
    font-weight: bold;
    margin-bottom: 25px;
}

div.success_segnalazioni {
    color: darkgreen;
    font-weight: bold;
    display: none;
    margin-bottom: 25px;
}

div.wait_reload {
    display:none;
}

#show_content_upload {
    margin-top: 20px;
}

.content-pdf-link {
    text-align: center;
    padding: 30px;
}

.content-pdf-link img {
    width: 100px;
}

div.upload_success {
    display: none; 
    width: 50%;
    margin: auto;
}

.editor-wrapped  .ck-toolbar__items button:hover{
    color: darkblue;
}

#form_list_content p {
    margin: 0;
    padding: 0;
    line-height: 0.7;
}

#form_list_content legend {
    display: inline-block;
    font-weight: bold;
    padding: 2px 5px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #114D20;
    width: 200px;
}

#form_list_content span {
    color: #000;
    margin-left: 25px;
}

/** LOADER **/
.lds-roller,
.lds-roller div,
.lds-roller div:after {
    box-sizing: border-box;
}
.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}
.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7.2px;
    height: 7.2px;
    border-radius: 50%;
    background: currentColor;
    margin: -3.6px 0 0 -3.6px;
}
.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
    top: 62.62742px;
    left: 62.62742px;
}
.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
    top: 67.71281px;
    left: 56px;
}
.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
    top: 70.90963px;
    left: 48.28221px;
}
.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}
.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
    top: 70.90963px;
    left: 31.71779px;
}
.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
    top: 67.71281px;
    left: 24px;
}
.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
    top: 62.62742px;
    left: 17.37258px;
}
.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12.28719px;
}
@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.table_admin {
    width: 100%;
}

.table_admin .center {
    text-align: center;
}

.table_admin tr {
    border: 1px solid grey;
}

.table_admin th, .table_admin td {
    font-size: 0.8em;
}

.table_admin th {
    background: darkgreen;
}

.icon-table {
    width: 30px;
    cursor: pointer;
}

.icon-table.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* Sfondo semi-trasparente del popup */
.popup-overlay {
    display: none; /* inizialmente nascosto */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenuto del popup */
.popup {
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    min-width: 300px;
    text-align: center;
}

.action-link-popup {
    display: flex;
    width: 100%;
    justify-content: center;
}

.chiudi-popup {
    cursor: pointer;
}

.error_upload {
    color: red;
}

.popup .container-img-user img {
    max-height: 400px;
}

.content_table table tr  {
    border-bottom: 1px solid lightgrey;
}

.content_table table tr td, .content_table table tr th {
    font-size: 0.6em;
}

.content_table table tr th {
    position: sticky;
    top:0;
    z-index: 2;
}


.expand-riduci {
    float:left; 
    font-size: 0.6em;
    cursor: pointer;
}

.add-icon-gradi {
    font-size: 2.4em;
    cursor: pointer;
}

.add-icon-enti, .add-icon-biblioteca {
    font-size: 2.4em;
    cursor: pointer;
}

img.pointer {
    max-width: 50px !important;
}

.pointer {
    cursor: pointer;
}

.grado_new_insert_form {
    display: none;
}

div.record_edit_form button {
    max-width: 150px !important;
}

div.turning_back button {
    background: transparent !important;
    color: #000 !important;
}

div.attention-box {
    color:red;
    padding: 15px;
    background-color: yellow;
}

.documentale {
    width: 100%;
}

.documentale ul {
    list-style: none;
}

.documentale ul li {
    padding: 20px;
    display: flex;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
}
.documentale img.icon-label {
    max-width: 48px;
}

.documentale div {
    margin: 10px;
}

.superadmin {
    text-align: center;
    font-weight: bold; 
    color: darkgreen;
}

.admin {
    text-align: center;
    font-weight: bold; 
    color: darkblue;
}
.segreteria {
    text-align: center;
    color: darkorange;
}
.editore {
    text-align: center;
    color: grey;
}

.center {
    text-align: center;
}

.img_post_backend {
    max-height: 250px;
}

li.suggest_ente {
    border-bottom: 1px solid lightgrey;
    margin-top:3px;
}

.documentale .result_anagrafica_ricerca ul {
    margin: 0;
    padding: 0;
}

.documentale .result_anagrafica_ricerca li  {
    margin: 0;
    padding: 0;
}

.result_report_user th, .result_report_user td {
    font-size: 14px;
}

#suggestions li {
    padding: 5px;
    cursor: pointer;
}

#suggestions li:hover {
    background-color: #f0f0f0;
}

.tag {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 3px;
    font-size: 14px;
}

.object_tag {
    background: yellow;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid gray;
    cursor: pointer;
}

#suggestions li {
    display: inline-block;
    background: #197FAA;
    color: #FFF;
    margin: 10px;
}

#suggestions li:hover {
    color: #FFF !important;
    background: darkblue;
}

.content_ricerca_table {
    display: flex;
    justify-content: space-between;
}

.content_table .select_container {
    width: 40%;
    display: inline-block;
}

.caption_button {
    display: flex;
    justify-content: space-around;
    align-content: center;
    width: 100%;
    margin: 20px 0px 20px 0;
}

.caption_button div {
    border: 1px solid grey;
    border-radius: 10px 20px 10px 20px;
    padding: 10px 20px;
    cursor: pointer;
}

.caption_button div.active {
    background: #000;
    color: #FFF;
}

.caption_button div:hover {
    background: darkgrey;
    color: #FFF;
}

.caption_button div.active:hover {
    background: #000 !important;
}

table.griglia_archivio {
    width: 100%;
    font-size: 1.3em;
}

tbody.append_document td {
    color: #000;
}

.suggestions-box {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    background: white;
    z-index: 1000;
    width: 300px;
    padding: 10px;
}
.suggestions-box label {
    display: block;
    margin: 5px 0;
}

div.result_selected_tags {
    text-align: center;
    margin: 20px;
    display: none;
}

#selected-tags {
    margin-top: 10px;
    display: inline-block;
}

#selected-tags span {
    background-color: yellow;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
}

div#nessun_risultato {
    text-align: center;
    border-top: 2px solid gray;
    margin-bottom: 20px;
}

/* 🌐 ADATTAMENTO MOBILE */
@media (max-width: 1024px) {
    .mobile_menu_admin {
        display: block;
    }
     .menu_desktop {
        display: none !important;
    }
    .caption_button {
        display: inline-block;
    }
    .caption_button div {
        border: 0;
        border-radius: 0;
    }
    .adjust_mobile {
        display: none !important;
    }
}

/* 💻 NASCONDILO SU DESKTOP */
@media (min-width: 1024px) {
    .mobile_menu_admin {
        display: none;
    }
    .menu_desktop {
        display: block;
    }
}

.mobile_menu_admin {
    font-family: sans-serif;
    background-color: #2c3e50;
    color: white;
    border-radius: 6px;
    overflow: hidden;
}

/* Pulsante MENU */
.mobile_menu_admin .menu-toggle {
    padding: 5px;
    background-color: #34495e;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

/* Menu principale */
.mobile_menu_admin .main-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Voci principali */
.mobile_menu_admin .menu-item {
    border-top: 1px solid #3e5b76;
}

.mobile_menu_admin .menu-label {
    padding: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile_menu_admin .menu-label:hover {
    background-color: #3d566e;
}

/* Submenu */
.mobile_menu_admin .submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #3d566e;
}

.mobile_menu_admin .submenu li {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile_menu_admin .submenu li a {
    color: #FFF;
}

.mobile_menu_admin .submenu li:hover {
    background-color: #4d6a86;
}

.area_testo_mail {
    width: 100%;
    border: 1px solid gray !important;
    padding: 20px !important;
    min-width: 600px !important;
    margin-bottom: 15px;
}

input[type='checkbox'].input_checkbox_visible {
    display: inline;  
    position: relative !important;
    margin-left: 20px !important;
}

li.sigla_ente_ref {
    list-style: disclosure-closed;
    padding: 5px 10px;
}

a.sigla_ente_ref  {
    cursor: pointer !important;
}

a.sigla_ente_ref:hover {
    cursor: pointer !important;
    font-weight: bold;
    color: #000;
}

legend.disdetta {
    margin-top: 30px;
}

a.disdette_inserisci_nuovo {
    color: darkgreen;
    font-size: bold;
}