.app-shell {
    width: 100%;
    max-width: none;
    padding: 0 20px 32px;
}

.global-loading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.global-loading-progress.active {
    opacity: 1;
}

.global-loading-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(37, 99, 235, .22);
}

.global-loading-progress-bar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -48%;
    width: 48%;
    background: linear-gradient(90deg, #1d4ed8, #2563eb, #3b82f6, #93c5fd);
    box-shadow: 0 0 28px rgba(37, 99, 235, .95);
    animation: global-loading-slide .9s ease-in-out infinite;
}

@keyframes global-loading-slide {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(420%);
    }
}

@media (min-width: 1200px) {
    .app-shell {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1600px) {
    .app-shell {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 767.98px) {
    .app-shell {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.instrument-multi-select {
    position: relative;
    min-width: 0;
}

.instrument-multi-select-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 4px 7px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
}

.instrument-multi-select:focus-within .instrument-multi-select-control {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .16);
}

.instrument-multi-select-search {
    flex: 1 1 120px;
    min-width: 90px;
    border: 0;
    outline: 0;
    padding: 3px;
    background: transparent;
}

.instrument-chips {
    display: contents;
}

.instrument-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 150px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f4ef;
    color: #075d49;
    font-size: .76rem;
    font-weight: 800;
}

.instrument-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.instrument-chip button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
}

.instrument-suggestions {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #d7dedb;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 35, 29, .15);
}

.instrument-suggestion {
    display: grid;
    grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #edf0ef;
    background: #fff;
    color: #17251f;
    text-align: right;
}

.instrument-suggestion:last-child {
    border-bottom: 0;
}

.instrument-suggestion:hover,
.instrument-suggestion.active {
    background: #edf6f2;
}

.instrument-suggestion span {
    overflow: hidden;
    color: #66736e;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grouped-number-input {
    direction: ltr;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.strategy-order-cell {
    min-width: 190px;
}

.strategy-order-symbol {
    margin-top: .25rem;
    font-weight: 700;
}

.strategy-order-meta,
.strategy-order-average {
    direction: ltr;
    margin: .2rem 0;
    color: #6c757d;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.strategy-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.strategy-detail-item {
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #f8fafc;
}

.strategy-detail-label,
.strategy-detail-value {
    display: block;
}

.strategy-detail-label {
    margin-bottom: .2rem;
    color: #64748b;
    font-size: .78rem;
}

.strategy-detail-value {
    font-weight: 700;
}
