html {
    zoom: 1.26;
}

html[lang="cn"] {
    zoom: 1.23;
}

html[lang="jp"] {
    zoom: 1.2;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    html {
        zoom: 0.46;
    }
    html[lang="cn"] {
        zoom: 0.45;
    }
    
    html[lang="jp"] {
        zoom: 0.45;
    }
}

table {
    border-collapse: separate;
    border-spacing: 1;
    width: 100%;
}

thead {
    background-color: #ffffff;
    position: sticky; /* Fissa l'intestazione in alto */
    top: 0;
    z-index: 2;
}
    
td, th {
    position: relative;
    font-size: 13px;
    border: 2px solid #ddd;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    td, th {
        font-size: 11px;
    }
}
    
tbody td:hover {
    background-color: #ddd;
}

.main_table {
    padding-left: 14px;
    padding-right: 8px;
    width: 98%;
    margin-bottom: 10px;
    table-layout: fixed;
    overflow-y: auto;
    overflow-x: auto;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    margin-top: auto;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
}

button:disabled {
    filter: opacity(40%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

button:hover{
    filter: brightness(85%);
    transform: translateY(-5px);
}

button:disabled:hover {
    filter: brightness(100%);
    filter: opacity(40%);
    transform: translateY(0px);
}

textarea {
    font-family: Helvetica;
}

.printer-button {
    top: 47px;
    right: 255px;
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: #1086C3;
}

.ticket-button {
    top: 47px;
    right: 210px;
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: #1086C3;
}

.video-button {
    top: 47px;
    right: 165px;
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: #1086C3;
}

.home-button {
    top: 47px;
    right: 75px;
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: #1086C3;
}

.manuals-button {
    top: 47px;
    right: 120px;
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: #1086C3;
}

.download-button {
    top: 47px;
    right: 75px;
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: #1086C3;
}

.logout-button {
    top: 47px;
    right: 30px;
    width: 32px;
    height: 32px;
    position: absolute;
    background-color: #1086C3;
}

/* Modal container */
.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 80vw;
    height: 80vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

/* Iframe container */
.iframe-container {
    position: relative;
    width: 35%;
    height: 65vh;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

/* Close button */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background-color: transparent;
    font-size: 20px;
    cursor: pointer;
    width: 18px;
    height: auto;
    border: none;
    filter: opacity(35%);
    transition: 0.5s;
}

/* Close button */
.close-button:hover {
    filter: opacity(100%);
}

/* Iframe */
.iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsività */
@media screen and (max-width: 768px) {

    .ticket-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 3;
    }

    .iframe-container {
        width: 60%;
        height: 75vh;
        border-radius: 8px;
    }

    .close-button {
        top: 10px;
        right: 10px;
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
}

.logo {
    width: auto;
    height: 50px;
    padding-top: 14px;
}