@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #5d5f61;
}

.e-progress-btn .e-btn-content {
    font-size: 1.2rem;
}

.e-progress-btn:hover .e-btn-content:hover {
    font-size: 1.2rem;
}

.e-menu-wrapper ul .e-menu-item,
.e-menu-container ul .e-menu-item {
    line-height: 40px;
    height: 40px;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    color: #3e3e3e;
}

.e-menu-wrapper .e-menu .e-menu-item .e-menu-url,
.e-menu-container .e-menu .e-menu-item .e-menu-url {
    color: #3e3e3e;
}

.e-menu-wrapper:hover .e-menu:hover .e-menu-item:hover .e-menu-url:hover,
.e-menu-container:hover .e-menu:hover .e-menu-item:hover .e-menu-url:hover,
.e-menu-wrapper:focus .e-menu:focus .e-menu-item:focus .e-menu-url:focus,
.e-menu-container:focus .e-menu:focus .e-menu-item:focus .e-menu-url:focus {
    color: darkgrey;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ==========================================
   Tenant Profile — Top Avatar + Popup
========================================== */
.e-control.e-toolbar.e-lib.e-keyboard {
    min-height: 56px !important;
}

.e-toolbar .e-toolbar-items.e-toolbar-right {
    justify-content: flex-end !important;
    display: flex !important;
}
.profile-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-image,
.avatar-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-pencil,
.avatar-pencil-large {
    position: absolute;
    background: #007bff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.avatar-pencil {
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
}

.avatar-pencil-large {
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
}

    .avatar-pencil svg,
    .avatar-pencil-large svg {
        width: 65%;
        height: 65%;
        fill: white;
    }

.profile-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background-color: transparent;
}

.profile-popup {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 12px 0;
    animation: fadeIn 0.12s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 14px;
    border-bottom: 1px solid #e6e6e6;
}

.popup-avatar {
    position: relative;
}

.popup-avatar-image,
.popup-avatar-default {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #6c757d;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.popup-email {
    font-size: 13px;
    color: #6c757d;
}

.popup-links {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

    .popup-links a {
        padding: 8px 14px;
        text-decoration: none;
        color: #333;
        border-radius: 6px;
        font-size: 14px;
    }

        .popup-links a:hover {
            background: #f5f5f5;
        }

/* ==========================================
   Tenant Profile Editor (SfDialog)
========================================== */

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.avatar-default-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
}

.avatar-edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #007bff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.avatar-clickable:hover .avatar-edit-icon {
    background: #0056b3;
}

.pu-container {
    padding: 10px 5px;
}

.pu-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.pu-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
