
#tpbox {height:100vh;overflow-y: hidden}
#tpframe {height:100%;/*min-height:1230px*/}
.projlegend-container {display:flex;flex-direction:column;justify-content: space-between}
.projlegend {display: flex;flex-direction: row;align-content: flex-end;grid-gap:10px}
.projlegend img {width: 13px}
.projlegend-ico img {width: 20px}
td.projactions-cell {height: 1px} /* Forza i child a rispettare height: 100% */
td.projactions-cell .projlegend-container {height: 100%}
td.user-actions-cell {height: 1px} /* Forza i child a rispettare height: 100% */
td.cell-preview-img {text-align: center}
.goback,.button-tileplanner,.button-realityremod {cursor: pointer}
.dt-empty-footer .dt-length {text-align: right}
div.dt-container .ui-toolbar {padding: 10px}
.dt-container .dt-info {clear: both;float: left;margin-left: 5%;padding-top: 0.755em}
.dt-container .dt-paging {float: right;text-align: right;margin-right: 5%;padding-top: 0.25em}

/* Projects loader */
.projects-loading {
    text-align: center;
    padding: 40px 20px;
}

.projects-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.projects-loading p {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Showroom logo widget [showroom_logo] ─────────────────────────────────── */
.m365-showroom-logo {
    position: relative;
    display: inline-block;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 10px;
    max-width: 100%;
}

.m365-showroom-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.m365-showroom-logo__placeholder {
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: #f0f0f0;
    border-radius: 10px;
    display: block;
}

.m365-showroom-logo__edit {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.m365-showroom-logo__edit:hover {
    background: rgba(255, 255, 255, 1);
}

.m365-showroom-logo__edit img {
    width: 14px;
    height: 14px;
    display: block;
}

/* ── Profile photo widget [user_profile_photo] ────────────────────────────── */
.m365-profile-photo {
    position: relative;
    display: inline-block;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 10px;
    max-width:100%
}

.m365-profile-photo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.m365-profile-photo__edit {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.media-frame-title h1 {
    font-size: 22px !important;
}

.m365-profile-photo__edit:hover {
    background: rgba(255, 255, 255, 1);
}

.m365-profile-photo__edit img {
    width: 14px;
    height: 14px;
    display: block;
}

/* ── Profile field rows [user_first_name], [user_email], etc. ──────────────── */
.m365-profile-field {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px 0;
}

.m365-profile-field__label {
    flex: 0 0 140px;
    font-weight: 300;
    color: var(--e-global-color-primary);
    font-size: 0.9rem;
}

.m365-user-role-name {
    text-transform: uppercase !important;
}

.m365-profile-field__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0 none !important;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    color: inherit;
    font: inherit;
    padding: 0;
}

.m365-profile-field__input[readonly] {
    opacity: 0.7;
    cursor: default;
}

select.m365-profile-field__input {
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
    padding-right: 4px;
}

select.m365-profile-field__input:disabled {
    opacity: 0.7;
    cursor: default;
}

.m365-profile-field__save {
    flex: 0 0 auto;
    background: var(--e-global-color-primary);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.m365-profile-field__save:hover {
    opacity: 0.85;
}

.m365-profile-field__save:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── OU edit form [ou_edit_form] ───────────────────────────────────────────── */
.m365-ou-form_container {
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 20px;
}

.m365-ou-form_container .m365-profile-field:last-child {
    border:0 none;
}

.m365-ou-form__footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 12px;
}

.m365-ou-form__save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--e-global-color-text);
    border: none;
    border-radius: 15px;
    padding: 8px 14px 8px 18px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.m365-ou-form__save img {
    width: 14px;
    height: 14px;
    display: block;
}

.m365-ou-form__save:hover {
    opacity: 0.85;
}

.m365-ou-form__save:disabled {
    opacity: 0.5;
    cursor: default;
}

.m365-ou-form__msg {
    font-size: 0.82rem;
    color: var(--e-global-color-text);
    margin-left: 12px;
}

.m365-profile-field__pending {
    margin: 2px 0 8px 0;
    font-size: 0.82rem;
    color: #856404;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
}

/* Password change widget */
.m365-change-password__step2 {
    overflow: hidden;
}

.m365-cp-error {
    margin: 2px 0 8px 0;
    font-size: 0.82rem;
    color: var(--e-global-color-primary);
    background: #f8d7da;
    border-left: 3px solid #dc3545;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
}

/* ── Active sessions table [user_active_sessions] ─────────────────────────── */
.m365-sessions {
    width: 100%;
    overflow-x: auto;
}

.m365-sessions__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.m365-sessions__table thead tr {
    border-bottom: 2px solid #e6e6e6;
}

.m365-sessions__th {
    text-align: left;
    font-weight: 300;
    color: var(--e-global-color-primary);
    padding: 8px 12px 8px 0;
    white-space: nowrap;
}

.m365-sessions__row {
    border-bottom: 1px solid #e6e6e6;
}

.m365-sessions__ua {
    padding: 10px 12px 10px 0;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m365-sessions__date {
    padding: 10px 12px 10px 0;
    white-space: nowrap;
}

.m365-sessions__action {
    padding: 10px 0;
    white-space: nowrap;
}

.m365-sessions__badge {
    font-size: 0.8rem;
    color: var(--e-global-color-primary);
    opacity: 0.65;
}

.m365-sessions__destroy {
    background: transparent;
    color: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary);
    border-radius: 15px;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s;
}

.m365-sessions__destroy:hover {
    background: var(--e-global-color-primary);
    color: #fff;
}

.m365-sessions__destroy:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── Consents widget [user_consents] ──────────────────────────────────────── */
.m365-consents__checkbox {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    accent-color: var(--e-global-color-primary);
    cursor: default;
}

.m365-consents__label {
    flex: 1;
    font-size: 0.9rem;
}

.m365-consents__label a {
    color: var(--e-global-color-primary);
}

/* ── Delete account widget [user_delete_account] ──────────────────────────── */
.m365-delete-account__info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.m365-delete-account__photo {
    width: 67px;
    height: 67px;
    border-radius: 100% !important;
    object-fit: cover;
    flex-shrink: 0;
}

.m365-delete-account__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.m365-delete-account__email {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m365-delete-account__role {
    font-size: 0.8rem;
    opacity: 0.65;
    text-transform: uppercase;
}

.m365-delete-account__btn {
    flex: 0 0 auto;
    border-radius: 15px;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    background: transparent !important;
    color: var(--e-global-color-primary) !important;
    border: 1px solid var(--e-global-color-primary) !important;
}

.m365-delete-account__btn:hover {
    background: var(--e-global-color-primary) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.m365-delete-account__feedback {
    margin: 4px 0 0 0;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    border-left: 3px solid currentColor;
}

/* ── Password visibility toggle ──────────────────────────────────────────── */
.m365-pwd-field {
    flex-direction: column !important;
    align-items: stretch !important;
}

.m365-pwd-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.m365-pwd-wrapper > input {
    flex: 1;
    min-width: 0;
    padding-right: 32px !important;
}

.m365-pwd-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 2px 4px;
    margin: 0;
    cursor: pointer;
    color: inherit;
    opacity: 0.45;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m365-pwd-toggle:hover {
    opacity: 0.85;
}

.m365-pwd-toggle svg {
    display: block;
}

.m365-pwd-toggle .m365-eye-closed {
    display: none;
}

.m365-pwd-toggle--visible .m365-eye-open {
    display: none;
}

.m365-pwd-toggle--visible .m365-eye-closed {
    display: block;
}