@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.agent-blink {
    animation: agent-blinker 2.5s linear infinite;
    border-radius: 25px;
}

.text-blink {
    animation: text-blinker 2.5s linear infinite;
}

.manage-legs-blink {
    animation: manage-legs-blinker 2.5s linear infinite;
}

.position-signal-blink {
    animation: position-signal-blinker 2.5s linear infinite;
}

.new-strategy-blink {
    animation: new-strategy-blinker 5s linear infinite;
}

@keyframes manage-legs-blinker {
    50% {
        background-color: #2596be;
        color: white;
    }
}

@keyframes position-signal-blinker {
    50% {
        background-color: #001f3f;
        color: #00ffff;
    }
}

@keyframes new-strategy-blinker {
    50% {
        background-color: white;
        color: #ff6d41;
    }
}

@keyframes agent-blinker {
    50% {
        background-color: red;
    }
}

.signal-blink-orange {
    animation: signal-blinker-orange 2.5s linear infinite;
    border-radius: 25px;
}

@keyframes signal-blinker-orange {
    50% {
        background-color: #ff7300;
        color: #b35400;
    }
}

.signal-blink-red {
    animation: signal-blinker-red 2.5s linear infinite;
    border-radius: 25px;
}

@keyframes signal-blinker-red {
    50% {
        background-color: red;
        color: #b35400;
    }
}

@keyframes text-blinker {
    50% {
        color: red;
    }
}

@media (max-width: 768px) {
    .dropdown-row {
        flex-direction: column;
    }
}

.portfolio-index-page,
.portfolio-index-alt-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-index-history,
.portfolio-index-shell,
.portfolio-index-cards,
.portfolio-index-card,
.portfolio-index-card-graph {
    min-width: 0;
}

.portfolio-index-grid-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portfolio-index-view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.625rem;
}

.portfolio-index-secondary-toggle {
    margin-top: 0;
}

.portfolio-index-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.portfolio-index-toolbar-main {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-start;
    min-width: 0;
}

.portfolio-index-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.portfolio-index-toolbar-group-primary {
    flex: 1 1 auto;
}

.portfolio-index-toolbar-group-wide {
    flex: 0 1 14rem;
}

.portfolio-index-toolbar-label {
    font-weight: 500;
    white-space: nowrap;
}

.portfolio-index-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.portfolio-index-toolbar-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    order: -1;
}

.positions-toolbar .portfolio-index-toolbar-main > .portfolio-index-toolbar-group {
    align-items: flex-start;
}

.portfolio-index-control-sm {
    width: min(100%, 6.5rem);
    max-width: 6.5rem;
}

.portfolio-index-control-wide {
    width: min(100%, 14rem);
    max-width: 14rem;
}

.portfolio-index-card-row {
    row-gap: 1.25rem;
    align-items: flex-start;
}

.portfolio-index-card-row > .rz-col {
    align-self: flex-start;
}

.portfolio-index-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.portfolio-index-card-header {
    min-width: 0;
}

.portfolio-index-card-header .rz-breadcrumb {
    flex-wrap: wrap;
}

.portfolio-index-card-graph .js-plotly-plot {
    width: 100% !important;
}

.portfolio-index-summary-chart .js-plotly-plot {
    width: 100% !important;
}

.portfolio-index-summary-chart .plot-container,
.portfolio-index-summary-chart .svg-container {
    width: 100% !important;
    max-width: 100% !important;
}

.portfolio-index-grid-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-detail-page,
.portfolio-detail-summary,
.portfolio-detail-summary-grid,
.portfolio-detail-toolbar,
.portfolio-detail-toolbar-main,
.portfolio-detail-content,
.portfolio-detail-primary,
.portfolio-detail-side,
.portfolio-detail-plot-stack,
.portfolio-detail-side-plot,
.portfolio-detail-grid-shell {
    min-width: 0;
}

.portfolio-detail-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.portfolio-detail-page > * {
    width: 100%;
    max-width: 100%;
}

.portfolio-detail-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.portfolio-detail-summary-grid {
    display: grid;
    flex: 1 1 auto;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem 1rem;
}

.portfolio-detail-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.portfolio-detail-summary-label {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.62);
}

.portfolio-detail-summary-value {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.portfolio-detail-summary-link {
    overflow-wrap: anywhere;
}

.portfolio-detail-summary-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex: 0 0 auto;
}

.portfolio-detail-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.portfolio-detail-toolbar-main {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-start;
}

.portfolio-detail-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-detail-toolbar-group-primary {
    flex: 1 1 auto;
}

.portfolio-detail-toolbar-group-wide {
    flex: 0 1 14rem;
}

.portfolio-detail-toolbar-label {
    font-weight: 500;
    white-space: nowrap;
}

.portfolio-detail-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.portfolio-detail-toolbar-actions > * {
    min-width: 0;
}

.portfolio-detail-control-sm {
    width: min(100%, 6.5rem);
    max-width: 6.5rem;
}

.portfolio-detail-control-md {
    width: min(100%, 10rem);
    max-width: 10rem;
}

.portfolio-detail-control-wide {
    width: min(100%, 14rem);
    max-width: 14rem;
}

.portfolio-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: 1rem;
    align-items: start;
}

.portfolio-detail-content-single {
    grid-template-columns: 1fr;
}

.portfolio-detail-plot-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-detail-grid-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portfolio-detail-grid-shell .rz-data-grid,
.portfolio-detail-grid-shell .rz-data-grid-data {
    max-width: 100%;
    overflow-x: auto;
}

.portfolio-detail-primary-graph .js-plotly-plot,
.portfolio-detail-side-plot .js-plotly-plot {
    width: 100% !important;
}

.portfolio-detail-primary-graph .plot-container,
.portfolio-detail-primary-graph .svg-container,
.portfolio-detail-side-plot .plot-container,
.portfolio-detail-side-plot .svg-container {
    width: 100% !important;
    max-width: 100% !important;
}

.portfolio-detail-primary-graph .js-plotly-plot {
    height: min(62vh, 38rem) !important;
    min-height: 20rem;
}

.portfolio-detail-content-single .portfolio-detail-primary-graph .js-plotly-plot {
    height: min(68vh, 42rem) !important;
}

.portfolio-detail-side-plot .js-plotly-plot {
    height: min(31vh, 18rem) !important;
    min-height: 13rem;
}

@media (min-width: 769px) and (min-height: 501px) {
    .portfolio-detail-page {
        min-height: calc(100dvh - 4.1rem);
    }

    .portfolio-detail-content {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
    }

    .portfolio-detail-primary,
    .portfolio-detail-primary-graph,
    .portfolio-detail-side,
    .portfolio-detail-plot-stack,
    .portfolio-detail-side-plot {
        height: 100%;
        min-height: 0;
    }

    .portfolio-detail-side {
        display: flex;
    }

    .portfolio-detail-plot-stack {
        flex: 1 1 auto;
    }

    .portfolio-detail-side-plot {
        flex: 1 1 0;
    }

    .portfolio-detail-primary-graph > .mobile-layout {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .portfolio-detail-primary-graph > .mobile-layout > .rz-row + .rz-row {
        flex: 1 1 auto;
        min-height: 0;
    }

    .portfolio-detail-primary-graph > .mobile-layout > .rz-row + .rz-row > .rz-col {
        display: flex;
        min-height: 0;
    }

    .portfolio-detail-primary-graph > .mobile-layout > .rz-row + .rz-row > .rz-col > .js-plotly-plot {
        flex: 1 1 auto;
    }

    .portfolio-detail-primary-graph > .mobile-layout > .rz-accordion {
        flex: 0 0 auto;
    }

    .portfolio-detail-primary-graph .js-plotly-plot,
    .portfolio-detail-content-single .portfolio-detail-primary-graph .js-plotly-plot,
    .portfolio-detail-side-plot .js-plotly-plot {
        height: 100% !important;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .portfolio-index-view-toggle,
    .portfolio-index-secondary-toggle {
        width: 100%;
        justify-content: stretch;
    }

    .portfolio-index-view-toggle .rz-button,
    .portfolio-index-secondary-toggle .rz-button {
        flex: 1 1 0;
        justify-content: center;
    }

    .portfolio-index-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-index-toolbar-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        order: 1;
    }

    .portfolio-index-toolbar-group,
    .portfolio-index-toolbar-group-primary,
    .portfolio-index-toolbar-group-wide {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }

    .portfolio-index-toolbar-label {
        width: 100%;
    }

    .portfolio-index-toolbar-actions {
        width: 100%;
        justify-content: stretch;
        order: 2;
    }

    .portfolio-index-toolbar-actions .rz-button {
        width: 100%;
        justify-content: center;
    }

    .portfolio-index-toolbar-navigation {
        width: 100%;
        order: 3;
    }

    .positions-toolbar .positions-toolbar-group-accounts {
        order: 1;
    }

    .positions-toolbar .positions-toolbar-group-positions {
        order: 2;
    }

    .positions-toolbar .portfolio-index-toolbar-main {
        display: contents;
    }

    .positions-toolbar .positions-toolbar-actions {
        order: 3;
    }

    .positions-toolbar .positions-toolbar-group-cycle {
        order: 4;
    }

    .positions-toolbar .positions-toolbar-group-graphs {
        order: 5;
    }

    .positions-toolbar .positions-toolbar-navigation {
        order: 6;
    }

    .strategies-toolbar .strategies-toolbar-group-accounts {
        order: 1;
    }

    .strategies-toolbar .strategies-toolbar-group-strategies {
        order: 2;
    }

    .strategies-toolbar .portfolio-index-toolbar-main {
        display: contents;
    }

    .strategies-toolbar .strategies-toolbar-actions {
        order: 3;
    }

    .strategies-toolbar .strategies-toolbar-group-cycle {
        order: 4;
    }

    .strategies-toolbar .strategies-toolbar-group-graphs {
        order: 5;
    }

    .strategies-toolbar .strategies-toolbar-navigation {
        order: 6;
    }

    .underlyings-toolbar .underlyings-toolbar-group-accounts {
        order: 1;
    }

    .underlyings-toolbar .portfolio-index-toolbar-main {
        display: contents;
    }

    .underlyings-toolbar .underlyings-toolbar-actions {
        order: 2;
    }

    .underlyings-toolbar .underlyings-toolbar-group-cycle {
        order: 3;
    }

    .underlyings-toolbar .underlyings-toolbar-group-graphs {
        order: 4;
    }

    .underlyings-toolbar .underlyings-toolbar-navigation {
        order: 5;
    }

    .portfolio-index-control-sm,
    .portfolio-index-control-wide {
        width: 100% !important;
        max-width: none !important;
    }

    .portfolio-index-page {
        width: min(100%, calc(100vw - 3.5rem));
        max-width: calc(100vw - 3.5rem);
    }

    .portfolio-index-page > *,
    .portfolio-index-alt-view,
    .portfolio-index-alt-view > * {
        min-width: 0;
        max-width: 100%;
    }

    .portfolio-index-grid-shell .portfolio-index-history-grid {
        min-width: 42rem;
    }

    .portfolio-index-grid-shell,
    .portfolio-index-grid-shell .rz-data-grid,
    .portfolio-index-grid-shell .rz-data-grid-data {
        max-width: 100%;
        overflow-x: auto;
    }

    .portfolio-index-card-row {
        flex-direction: column;
    }

    .portfolio-index-card-row > .rz-col {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .portfolio-index-card {
        gap: 0.625rem;
        padding-top: 0.875rem;
    }

    .portfolio-index-card-graph .js-plotly-plot {
        height: 40vh !important;
        min-height: 16rem;
    }

    .portfolio-index-summary-chart .js-plotly-plot {
        height: 42vh !important;
        min-height: 16rem;
    }

    .portfolio-index-summary-chart-shell,
    .portfolio-index-summary-chart {
        overflow-x: hidden;
    }

    .portfolio-detail-summary,
    .portfolio-detail-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-detail-summary-actions,
    .portfolio-detail-toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .portfolio-detail-summary-actions .rz-button {
        width: 100%;
        justify-content: center;
    }

    .portfolio-detail-page-position .portfolio-detail-summary-actions {
        justify-content: flex-start;
    }

    .portfolio-detail-page-position .portfolio-detail-summary-actions .rz-button {
        width: auto;
        min-width: 9.5rem;
    }

    .portfolio-detail-toolbar-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .portfolio-detail-toolbar-group,
    .portfolio-detail-toolbar-group-primary,
    .portfolio-detail-toolbar-group-wide {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }

    .portfolio-detail-toolbar-label {
        width: 100%;
    }

    .portfolio-detail-toolbar-actions > * {
        flex: 1 1 9.5rem;
    }

    .portfolio-detail-toolbar-actions .rz-button,
    .portfolio-detail-toolbar-actions .rz-splitbutton {
        width: 100%;
    }

    .portfolio-detail-toolbar-actions .rz-splitbutton {
        display: flex;
        align-items: stretch;
    }

    .portfolio-detail-toolbar-actions .rz-splitbutton > .rz-button:not(.rz-splitbutton-menubutton) {
        flex: 1 1 auto;
        width: auto;
    }

    .portfolio-detail-toolbar-actions .rz-splitbutton > .rz-splitbutton-menubutton {
        flex: 0 0 auto;
        width: auto;
        min-width: 2.5rem;
    }

    .portfolio-detail-toolbar-position .portfolio-detail-toolbar-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    }

    .portfolio-detail-control-sm,
    .portfolio-detail-control-md,
    .portfolio-detail-control-wide {
        width: 100% !important;
        max-width: none !important;
    }

    .portfolio-detail-content {
        grid-template-columns: 1fr;
    }

    .portfolio-detail-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
        gap: 0.625rem 0.75rem;
    }

    .portfolio-detail-primary-graph .js-plotly-plot {
        height: clamp(16rem, 34vh, 22rem) !important;
        min-height: 16rem;
    }

    .portfolio-detail-content-single .portfolio-detail-primary-graph .js-plotly-plot {
        height: clamp(18rem, 40vh, 24rem) !important;
        min-height: 18rem;
    }

    .portfolio-detail-side-plot .js-plotly-plot {
        height: clamp(13rem, 28vh, 18rem) !important;
        min-height: 13rem;
    }

    .portfolio-detail-toolbar-position .portfolio-detail-toolbar-actions {
        grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    }
}

@media (max-width: 950px) and (max-height: 500px) {
    .portfolio-index-card-graph .js-plotly-plot,
    .portfolio-index-summary-chart .js-plotly-plot {
        height: 28vh !important;
        min-height: 10rem;
    }

    .portfolio-detail-page {
        gap: 0.75rem;
    }

    .portfolio-detail-summary {
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .portfolio-detail-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
        gap: 0.5rem 0.75rem;
    }

    .portfolio-detail-summary-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0 0.35rem;
        align-items: baseline;
    }

    .portfolio-detail-summary-label {
        font-size: 0.74rem;
    }

    .portfolio-detail-summary-value {
        line-height: 1.2;
    }

    .portfolio-detail-summary-actions {
        justify-content: flex-end;
    }

    .portfolio-detail-summary-actions .rz-button {
        width: auto;
        min-width: 7rem;
    }

    .portfolio-detail-toolbar {
        gap: 0.75rem;
    }

    .portfolio-detail-toolbar-main {
        gap: 0.5rem 0.75rem;
    }

    .portfolio-detail-toolbar-group {
        gap: 0.35rem 0.5rem;
    }

    .portfolio-detail-toolbar-group-wide {
        flex-basis: 12rem;
        max-width: 12rem;
    }

    .portfolio-detail-toolbar-actions {
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .portfolio-detail-toolbar-actions > * {
        flex: 0 1 auto;
    }

    .portfolio-detail-toolbar-actions .rz-button,
    .portfolio-detail-toolbar-actions .rz-splitbutton {
        width: auto;
    }

    .portfolio-detail-toolbar-position .portfolio-detail-toolbar-actions {
        display: flex;
        grid-template-columns: none;
    }

    .portfolio-detail-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .portfolio-detail-primary-graph .js-plotly-plot {
        height: 14rem !important;
        min-height: 14rem;
    }

    .portfolio-detail-content-single .portfolio-detail-primary-graph .js-plotly-plot {
        height: 16rem !important;
        min-height: 16rem;
    }

    .portfolio-detail-side-plot .js-plotly-plot {
        height: 11rem !important;
        min-height: 11rem;
    }
}
