.navbar-custom {
    background-color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    padding: 0 20px 0 var(--sidebar-width) !important;
    height: var(--top-panel-height);
    font-family: "Rubik", sans-serif !important;
    transition: all 0.6s;
}

.top-panel-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem;
    margin-right: 1rem;
    width: 100%;
}

.top-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    grid-column: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.top-panel-center {
    grid-column: 2;
    display: flex;
    gap: 0.5rem;
}

.top-panel-right {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.context-switcher-container,
.role-switcher-container {
    display: flex;
}

.top-panel.expanded .navbar-custom {
    padding-left: calc(var(--sidebar-width) + var(--sub-sidebar-width)) !important;
}

.notification-badge {
    position: absolute;
    top: 0.2rem;
    right: -0.1rem;
    font-size: 0.6rem;
    box-shadow: 0 0 0 2px white;
}

.notification-icon {
    cursor: pointer;
    position: relative;
    font-size: 0.75rem;
    color: var(--buttons-gray-color);
}

.notification-icon i {
    font-size: 2rem !important;
}

.user-avatar {
    cursor: pointer;
    font-size: 2.75rem;
    color: var(--buttons-gray-color) !important;
    overflow: hidden;
}

.user-avatar-wrapper {
    display: flex;
    border-radius: 50%;
    justify-content: center;
    transition: box-shadow .15s ease-in-out;
}

.user-avatar-wrapper,
.user-avatar-wrapper > a,
.user-avatar-wrapper > a > img {
    width: 3.5rem;
    height: 3.5rem;
}

.user-avatar-wrapper > a {
    display: flex;
}

.user-avatar-wrapper:hover {
    box-shadow: 0 2px 8px 0 var(--buttons-gray-color);
}

.user-avatar-popup {
    display: flex;
    align-items: center;
}

.user-avatar-popup > img {
    width: 3rem;
}

.central-dropdown {
    height: 2.5rem;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    border-color: var(--buttons-gray-color) !important;
}

.central-dropdown.dropdown-toggle::after {
    display: none !important;
}

.navbar-custom .btn {
    color: var(--bs-nav-link-color);
}

.navbar-custom .btn span {
    font-weight: 500;
}

.mr-20px {
    margin-right: 1.25rem !important;
}

.user-dropdown {
    width: 15.625rem !important;
}

.user-dropdown .d-flex {
    gap: 0.625rem;
}

.aboutModal {
    font-family: "Raleway", sans-serif;
}

/* Logo row product name text */
.aboutModal .logoAndText {
    justify-content: flex-start;          /* keep things left-aligned */
}

.aboutModal .logoAndText .app-logo {
    width: 30rem;
}

.aboutModal .logoAndText .productName {
    color: var(--text-gray-color);
    font-size: 1.25rem;
    line-height: 1.1;
    margin-left: 0.625rem;                    /* visual gap after logo */
}

/* Frosty / faded-blue info card */
.aboutModal .buildInfoCard {
    background: rgba(0,123,255,0.06);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

/* label / value pairs */
.aboutModal .info-label {
    display: inline-block;
    font-size: 1rem;
    min-width: 11.25rem;
    color: var(--text-gray-color);
    font-weight: 400;
}
.aboutModal .info-value {
    font-size: 1rem;                 /* keep same height as label */
    font-weight: 400;
    color: var(--tabs-panel-color);
    margin-left: 0.5rem;
}

/* Copyright line */
.aboutModal .copyright {
    font-size: 0.75rem;
    color: var(--text-gray-color);
    margin-top: 1rem;
}

.context-switcher-button,
.role-switcher-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    min-height: 2.5rem;
    border-radius: 6px;
    border: 1px solid #c7cbd6;
    background: #fff;
    color: #4a4f5b;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0;
    cursor: pointer;
    transition: none;
}

.context-switcher-button:focus,
.role-switcher-button:focus {
    outline: none;
    box-shadow: none;
}

.context-switcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.context-switcher-icon img {
    width: 1.25rem;
    height: 1.25rem;
}

.context-switcher-text {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@media (min-width: 768px) {
    .context-switcher-modal,
    .role-switcher-modal {
        min-width: 36rem;
        max-width: 42rem;
    }
}

.context-switcher-modal,
.role-switcher-modal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 0.5rem 1rem;
    width: 100%;
    max-width: 42rem;
}

.context-switcher-modal__intro,
.role-switcher-modal__intro {
    color: var(--text-gray-color);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.context-switcher-modal__state,
.role-switcher-modal__state {
    text-align: center;
    color: var(--text-gray-color);
    font-style: italic;
}

.context-switcher-grid-host,
.role-switcher-grid-host {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 420px;
    width: 100%;
    overflow: hidden;
}

.context-switcher-grid,
.role-switcher-grid {
    display: flex !important;
    flex-direction: column;
}

.context-switcher-modal .grid-no-data {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
