body{
    margin: 0;
    overflow-x: hidden;
}

.header{
    padding: 20px;
    border-bottom: 1px solid #091e4224;
}

.icone_header{
    cursor: pointer;
}
.icone img{
    width: 50%;
}

.thumbnail {
    width: 100px;
    margin: 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s;
}
.thumbnail:hover { transform: scale(1.05); }

#myModal img {
    max-width: 90%;
    max-height: 80vh;
}

/* Sfondo overlay */
.gallery-modal {
    position: fixed;
    z-index: 3000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    display: none;
}
.gallery-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
}

/* Contenitore box */
.gallery-box {
    position: relative;
    margin: 5% auto;
    width: 70%;
    background: #111;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    z-index: 3100;
}

/* Immagine */
#galleryImg {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
}

/* Pulsante close */
.gallery-close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    z-index: 3200;
}

/* Prev/Next */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    padding: 10px;
    z-index: 3200;
    user-select: none;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Caption */
.gallery-caption {
    margin-top: 10px;
    color: #ccc;
    font-size: 1rem;
}


.toolbar{
    border-right: 1px solid #091e4224;
    height: 90vh;
    padding-top: 50px;
    padding-left: 20px;
}

.hover-shadow{
    width: 70%;
}

#info_cliente{
    display: none;
    position: fixed;
    top: 100px;
    right: 15px;
    padding: 20px;
    background-color: #e0f0ff;
    border: 1px solid #007acc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 22%;
}
#notifiche{
    display: none;
    position: fixed;
    top: 100px;
    right: 15px;
    padding: 20px;
    background-color: #e0f0ff;
    border: 1px solid #007acc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 16%;
}
#impostazioni{
    display: none;
    position: fixed;
    top: 100px;
    right: 15px;
    padding: 20px;
    background-color: #e0f0ff;
    border: 1px solid #007acc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 16%;
}

.accordion {
    width: 100%;
    font-family: sans-serif;
}

.accordion-header {
    background-color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}
.accordion-header2 {
    background-color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
}
.accordion-content2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
}

.accordion-content ul {
    padding: 15px;
    margin: 0;
    list-style-type: disc;
}

.accordion-content.open {
    padding: 15px;
}

.open {
    max-height: 500px;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 5px 5px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}

.tab-button:hover {
    background-color: #e6e6e6;
}

.content-container {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    position: relative;
    min-height: 150px;
}

/* Base state for content */
.tab-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease;
    max-height: 600px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* When active, fade in */
.tab-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.titolodettaglio{
    text-align: center;
    border-bottom: 1px solid #091e4224;
    width: 90%;
    margin: auto;
    margin-bottom: 50px;
}

.containertextarea {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

textarea {
    width: 90%;
    height: 150px;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Focus state */
textarea:focus {
    border-color: #888;
}

/* Optional: Placeholder styling */
textarea::placeholder {
    color: #999;
}

.labelticket{
    font-size: 18px;
    font-weight: bold;
}
.inputtesto{
    width: 100%;
    border: 1px solid #091e4224;
    border-radius: 5px;
    padding: 5px;
}
.textareacommenti{
    height: 75px;
    overflow: auto;
}

.custom-select {
    position: relative;
    width: 150px;
    font-family: Arial, sans-serif;
}

.custom-select select {
    width: 100%;
    padding: 5px;
    padding-right: 10px; /* spazio per la freccia */
    font-size: 16px;
    appearance: none; /* rimuove lo stile di default */
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #0d6efd;
    color: white;
}

.custom-select select option[value="in_corso"] {
    color: blue;
}

.custom-select::after {
    content: "˅";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    color: black;
}
.dettaglio-container-laterale {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    position: relative;
    min-height: 150px;
    font-size: 14px;
}
.spazio-20{
    margin-bottom: 20px;
}
.spazio-dettaglio-laterale{
    margin-bottom: 30px;
}

.dt-search{
    margin-bottom: 20px;
}
.dt-paging{
    margin-bottom: 20px;
    margin-top: 20px;
}

.titolo-dettaglio-laterale{
    font-size: 16px;
    font-weight: bold;
}
.menu-alto{
    display: none !important;
}
.incona-toolbar{
    width: 10%;
    margin-right: 5px;
    margin-bottom: 5px;
}
.lista-toolbar{
    margin-bottom: 40px;
}
.lista-anagrafiche{
    list-style-type: none;
}
.lista-anagrafiche li{
    margin-bottom: 15px;
}
.incona-anagrafiche{
    width: 10%;
    margin-right: 10px;
    margin-bottom: 5px;
}
.profilo{
    margin-bottom: 15px;
}
.incona-header{
    width: 80%;
    margin-right: 5px;
    margin-bottom: 5px;
}
