/*
 * Styling for the navbar's Shortcuts / Notifications dropdowns
 * (Views/Shared/Sections/Navbar/_NavbarPartial.cshtml).
 *
 * The vendored core.css / theme-default.css only ship a couple of incidental
 * rules for these components (they belong to a "Pro" template page bundle
 * that isn't part of this app's vendor assets) - this fills in the actual
 * layout/spacing/colors matching the reference theme.
 */

.dropdown-shortcuts .dropdown-menu {
    width: 25rem;
}
.dropdown-notifications .dropdown-menu {
    width: 22rem;
}

/* Bootstrap's `.badge:empty { display: none }` hides this dot outright
   since it deliberately carries no text - override back to a small
   circle positioned on the bell icon's corner. */
.badge-dot {
    display: block !important;
    width: 0.5rem;
    height: 0.5rem;
    min-width: 0;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.dropdown-shortcuts-list {
    overflow: hidden;
}

.dropdown-notifications-list {
    max-height: 25rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.row-bordered {
    overflow: hidden;
    border-top: 1px solid var(--bs-border-color, #e4e6e8);
}
.row-bordered > * {
    border-bottom: 1px solid var(--bs-border-color, #e4e6e8);
    border-inline-start: 1px solid var(--bs-border-color, #e4e6e8);
}
.row-bordered > *:first-child {
    border-inline-start: none;
}

.dropdown-shortcuts-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 1.75rem 0.75rem 1.25rem;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}
/* core.css's `.row-bordered > .col { padding-top: 1px }` is more specific
   than the rule above and was squashing the top padding to nothing. */
.row-bordered > .dropdown-shortcuts-item {
    padding-top: 1.75rem;
}
.dropdown-shortcuts-item:hover {
    background-color: var(--bs-tertiary-bg, #f5f5f9);
}
.dropdown-shortcuts-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}
.dropdown-shortcuts-text a {
    color: var(--bs-heading-color, #384551);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-shortcuts-item:hover .dropdown-shortcuts-text a {
    color: var(--bs-primary, #696cff);
}
.dropdown-shortcuts-text small {
    display: block;
    color: var(--bs-secondary-color, #a7acb2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-shortcuts-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.6rem;
    background-color: var(--bs-tertiary-bg, #ededf0);
}
.dropdown-shortcuts-icon i {
    font-size: 1.2rem;
}

.dropdown-notifications-item {
    padding: 0.75rem 1.25rem;
}
.dropdown-notifications-item .avatar {
    width: 2.375rem;
    height: 2.375rem;
}
.dropdown-notifications-item .avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
