.pagination svg {
    width: 1rem !important;
    height: 1rem !important;
    display: inline-block;
    vertical-align: middle;
}

nav[role="navigation"] svg {
    width: 1rem !important;
    height: 1rem !important;
    display: inline-block;
    vertical-align: middle;
}

.app-navbar-nav .nav-item {
    position: relative;
}

.app-navbar-link.active::after {
    position: absolute;
    right: 0.5rem;
    bottom: -0.55rem;
    left: 0.5rem;
    border-bottom: 2px solid var(--bs-light);
    content: '';
}

.app-hover-dropdown:hover > .dropdown-menu,
.app-hover-dropdown:focus-within > .dropdown-menu {
    display: block;
}

.app-hover-dropdown > .dropdown-menu-end {
    right: 0;
    left: auto;
}

.app-notifications-menu {
    width: min(34rem, calc(100vw - 2rem));
    max-height: 28rem;
    overflow-y: auto;
}

.app-notification-item-unread {
    background-color: var(--bs-primary-bg-subtle);
    border-left: 3px solid var(--bs-primary);
}

.app-notification-unread-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background-color: var(--bs-primary);
    vertical-align: 0.08rem;
}

.app-notification-action-btn {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
}

.app-highlighted-execution {
    outline: 2px solid var(--bs-warning);
    outline-offset: -2px;
}

.exchange-balance-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.exchange-balance-row {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background-color: var(--bs-tertiary-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.exchange-balance-asset {
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.exchange-token-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.exchange-token-icon-image {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.exchange-token-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.625rem;
}

.exchange-balance-value {
    margin-bottom: 0.15rem;
}

.exchange-balance-usd {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .exchange-balance-lines {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .exchange-balance-lines {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.trigger-allocation-chart {
    position: relative;
    background-color: var(--bs-secondary-bg);
    width: 8rem;
    min-width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
}

.trigger-allocation-chart::after {
    position: absolute;
    inset: 1.1rem;
    background-color: var(--bs-body-bg);
    border-radius: 50%;
    content: '';
}

.trigger-allocation-legend {
    display: grid;
    gap: 0.5rem;
}

.trigger-allocation-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.trigger-allocation-legend-item + .trigger-allocation-legend-item {
    border-top: 1px solid var(--bs-border-color);
}

.trigger-allocation-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

.trigger-allocation-dot-muted {
    background-color: var(--bs-secondary-color);
    opacity: 0.4;
}

.trigger-group-row > td {
    background-color: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-emphasis-color);
}

.segmented-selector > .btn {
    min-height: 45px;
    flex: 1 1 0;
}

.segmented-selector > label.btn {
    min-height: 45px;
}

.trade-quantity-toggle {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.trade-quantity-toggle .form-control {
    background: transparent;
    border-color: currentColor;
    color: inherit;
    min-width: 0;
    max-width: 9rem;
}

.trade-quantity-toggle .form-control:focus {
    background: transparent;
    color: inherit;
}

.trade-quantity-toggle .form-control::placeholder {
    color: currentColor;
    opacity: 0.65;
}

.trade-quantity-toggle .trade-quantity-percent-input {
    max-width: 5rem;
    text-align: center;
}
