@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: var(--b3-font-family);
}

a, .btn-link {
    color: var(--b3-accent);
}

.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: var(--b3-text-primary);
}

.e-menu-wrapper .e-menu .e-menu-item .e-menu-url,
.e-menu-container .e-menu .e-menu-item .e-menu-url {
    color: var(--b3-text-primary);
}

.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: var(--b3-primary-darker);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--b3-success);
}

.invalid {
    outline: 1px solid var(--b3-error);
}

.validation-message {
    color: var(--b3-error);
}

#blazor-error-ui {
    background: var(--b3-warning-lighter);
    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: var(--b3-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-pencil,
.avatar-pencil-large {
    position: absolute;
    background: var(--b3-accent);
    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: var(--b3-card-bg);
    border-radius: var(--b3-radius-card);
    box-shadow: var(--b3-shadow-popup);
    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 var(--b3-border-color);
}

.popup-avatar {
    position: relative;
}

.popup-avatar-image,
.popup-avatar-default {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--b3-gray-500);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--b3-text-primary);
}

.popup-email {
    font-size: 13px;
    color: var(--b3-text-muted);
}

.popup-links {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

    .popup-links a {
        padding: 8px 14px;
        text-decoration: none;
        color: var(--b3-text-primary);
        border-radius: 6px;
        font-size: 14px;
    }

        .popup-links a:hover {
            background: var(--b3-primary-lighter);
        }

/* ==========================================
   Tenant Profile Editor (SfDialog)
========================================== */

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--b3-border-color);
}

.avatar-default-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--b3-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--b3-border-color);
}

.avatar-edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--b3-accent);
    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: var(--b3-accent-dark);
}

.pu-container {
    padding: 10px 5px;
}

.pu-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.pu-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
