/* DYMANIS Portal - riferimenti comuni */

.wait-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 246, 248, 0.78);
    align-items: center;
    justify-content: center;
}

.wait-box {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 22px 28px;
    min-width: 240px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-weight: bold;
    color: #0c2748;
}

.wait-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid #dfe4e8;
    border-top: 4px solid #0b6f79;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    animation: waitSpin 0.8s linear infinite;
}

@keyframes waitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portal-wait {
    cursor: wait !important;
}


/* DYMANIS Portal - barra utente collegato */

.dbi-user-context-bar {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    background: #0c2748;
    color: #ffffff;
    border-bottom: 1px solid #1f456e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.dbi-user-context-inner {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    padding: 7px 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.dbi-user-context-text {
    line-height: 1.4;
    text-align: right;
}

.dbi-user-context-sep {
    display: inline-block;
    margin: 0 9px;
    color: #9fb2c7;
}

.dbi-user-context-logout {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.dbi-user-context-logout:hover {
    background: rgba(255,255,255,0.10);
}

@media (max-width: 720px) {
    .dbi-user-context-inner {
        padding: 7px 12px;
        align-items: flex-start;
    }

    .dbi-user-context-text {
        text-align: left;
        flex: 1;
    }

    .dbi-user-context-sep {
        margin: 0 5px;
    }
}
