.osb-shell {
    --osb-bg: #eaf0f8;
    --osb-panel: #ffffff;
    --osb-text: #1d2939;
    --osb-muted: #667085;
    --osb-border: #cbd5e1;
    --osb-blue: #1e459d;
    --osb-blue-dark: #16387f;
    --osb-profit: #22c55e;
    --osb-loss: #ef4444;
    background: var(--osb-bg);
    color: var(--osb-text);
    direction: rtl;
    font-family: inherit;
    margin: 24px 0;
    padding: 16px;
    text-align: right;
}

.osb-shell * {
    box-sizing: border-box;
}

.osb-button,
.osb-icon-button {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    justify-content: center;
}

.osb-button {
    background: #fff;
    border: 1px solid #9fb1d5;
    border-radius: 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    white-space: nowrap;
}

.osb-button:hover,
.osb-button:focus {
    border-color: var(--osb-blue);
    color: var(--osb-blue);
}

.osb-actions {
    display: flex;
    justify-content: flex-start;
    margin: 22px 0;
}

.osb-shell input,
.osb-shell select {
    background: #fff;
    border: 1px solid var(--osb-border);
    border-radius: 5px;
    color: var(--osb-text);
    font-family: inherit;
    font-size: 13px;
    min-height: 34px;
    padding: 8px 10px;
    width: 100%;
}

.osb-shell input:disabled {
    background: #f1f5f9;
    color: #98a2b3;
}

.osb-shell input:focus,
.osb-shell select:focus {
    border-color: var(--osb-blue);
    outline: 2px solid rgba(30, 69, 157, 0.16);
}

.osb-table-wrap {
    border-radius: 7px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
}

.osb-table {
    border-collapse: collapse;
    direction: rtl;
    min-width: 980px;
    width: 100%;
}

.osb-table thead {
    background: var(--osb-blue);
}

.osb-table th {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 8px;
    text-align: center;
}

.osb-table td {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.osb-table select {
    min-width: 120px;
}

.osb-icon-button {
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: var(--osb-loss);
    font-size: 20px;
    height: 32px;
    line-height: 1;
    width: 32px;
}

.osb-row-total {
    display: block;
    direction: ltr;
    font-size: 13px;
    font-weight: 700;
    min-width: 70px;
}

.osb-control-row {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.osb-range-panel {
    align-items: center;
    background: #dfe7f3;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 76px;
    padding: 14px 18px;
}

.osb-switch {
    align-items: center;
    color: var(--osb-muted);
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
}

.osb-switch input {
    display: none;
}

.osb-switch span {
    background: #fff;
    border-radius: 999px;
    display: inline-block;
    height: 22px;
    position: relative;
    width: 42px;
}

.osb-switch span::after {
    background: #c4c9d4;
    border-radius: 50%;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 2px;
    transition: transform 0.18s ease, background 0.18s ease;
    width: 18px;
}

.osb-switch input:checked + span::after {
    background: var(--osb-blue);
    transform: translateX(18px);
}

.osb-mini-field {
    align-items: stretch;
    border: 1px solid #b8c6dc;
    border-radius: 8px;
    display: inline-flex;
    direction: ltr;
    overflow: hidden;
}

.osb-mini-field input {
    border: 0;
    border-radius: 0;
    min-height: 42px;
    text-align: center;
    width: 110px;
}

.osb-mini-field span {
    align-items: center;
    background: #c6d2e5;
    color: #475467;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 0 12px;
}

.osb-spot-field {
    display: none;
}

.osb-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.osb-badge {
    align-items: center;
    background: #d7e0ef;
    border-radius: 5px;
    color: #475467;
    display: inline-flex;
    gap: 12px;
    min-height: 46px;
    padding: 10px 16px;
}

.osb-badge-name {
    background: #d8f0eb;
    color: #07825f;
}

.osb-badge span {
    font-size: 13px;
    font-weight: 800;
}

.osb-badge strong {
    direction: ltr;
    font-size: 12px;
}

.osb-chart-panel,
.osb-summary {
    background: var(--osb-panel);
    border: 1px solid var(--osb-border);
    border-radius: 8px;
}

.osb-chart-panel {
    min-height: 420px;
    overflow: hidden;
    padding: 0;
}

.osb-chart-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 18px 24px 6px;
}

.osb-legend {
    align-items: center;
    direction: ltr;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.osb-legend span {
    align-items: center;
    color: #344054;
    display: inline-flex;
    font-size: 12px;
    gap: 4px;
}

.osb-dot {
    border-radius: 50%;
    display: inline-block;
    height: 11px;
    width: 11px;
}

.osb-dot-profit {
    background: #bbf7c4;
}

.osb-dot-loss {
    background: #fca5a5;
}

.osb-dot-line {
    background: #1437ff;
}

.osb-menu-button {
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.osb-chart-canvas-wrap {
    padding: 0 22px 4px;
}

.osb-chart-panel canvas {
    cursor: crosshair;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.osb-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
}

.osb-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: inline-grid;
    gap: 3px;
    min-width: 170px;
    padding: 10px 12px;
}

.osb-metric span {
    color: var(--osb-muted);
    font-size: 12px;
}

.osb-metric strong {
    direction: ltr;
    font-size: 15px;
}

.osb-positive {
    color: #16a34a;
}

.osb-negative {
    color: var(--osb-loss);
}

.osb-zoom {
    align-items: center;
    background: #dfe7f3;
    border-radius: 5px;
    display: flex;
    gap: 14px;
    margin: 8px auto 16px;
    max-width: 560px;
    padding: 12px 18px;
}

.osb-zoom span {
    color: #475467;
    direction: ltr;
    font-size: 26px;
    line-height: 1;
}

.osb-zoom div {
    background: #cbd5e1;
    border-radius: 999px;
    flex: 1;
    height: 4px;
    position: relative;
}

.osb-zoom div::before {
    background: var(--osb-blue);
    border-radius: 50%;
    content: "";
    height: 18px;
    left: 64%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
}

.osb-zoom b {
    background: var(--osb-blue);
    border-radius: 999px;
    display: block;
    height: 100%;
}

@media (max-width: 820px) {
    .osb-shell {
        padding: 10px;
    }

    .osb-control-row {
        align-items: stretch;
        flex-direction: column;
    }

    .osb-range-panel,
    .osb-badges {
        width: 100%;
    }

    .osb-chart-canvas-wrap {
        padding: 0 8px 4px;
    }

    .osb-chart-head {
        padding-inline: 12px;
    }
}
