/*
 * ALBARON OPTIONS PAPER DASHBOARD V1
 * Presentation only.
 */

.paper-trading-panel {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(91, 227, 156, .20);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(11, 27, 28, .96),
            rgba(8, 15, 27, .96)
        );
    box-shadow:
        0 18px 60px rgba(0, 0, 0, .24);
}

.paper-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.paper-panel-title .eyebrow {
    color: rgba(125, 255, 192, .80);
}

.paper-panel-title h2 {
    margin: 5px 0 5px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.paper-panel-title p {
    margin: 0;
    color: rgba(224, 232, 245, .66);
    line-height: 1.7;
}

.paper-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(118, 255, 186, .24);
    color: #a4ffd0;
    background: rgba(32, 166, 96, .11);
    font-weight: 800;
    white-space: nowrap;
}

.paper-status-pill::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #62eca8;
    box-shadow: 0 0 14px rgba(98, 236, 168, .75);
}

.paper-status-pill.is-off {
    color: #ffd49b;
    border-color: rgba(255, 190, 104, .25);
    background: rgba(191, 120, 38, .10);
}

.paper-status-pill.is-off::before {
    background: #ffb45d;
    box-shadow: 0 0 14px rgba(255, 180, 93, .60);
}

.paper-metrics {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.paper-metric {
    min-width: 0;
    padding: 17px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .035);
}

.paper-metric span {
    display: block;
    margin-bottom: 7px;
    color: rgba(224, 232, 245, .60);
    font-size: .82rem;
}

.paper-metric strong {
    display: block;
    overflow-wrap: anywhere;
    color: #f7fbff;
    font-size: 1.32rem;
}

.paper-metric small {
    display: block;
    margin-top: 7px;
    color: rgba(224, 232, 245, .46);
}

.paper-positive {
    color: #7ef0b2 !important;
}

.paper-negative {
    color: #ff8e9b !important;
}

.paper-neutral {
    color: #f7fbff !important;
}

.paper-position-area,
.paper-history-area {
    margin-top: 18px;
}

.paper-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.paper-subheader h3 {
    margin: 0;
    font-size: 1.05rem;
}

.paper-subheader span {
    color: rgba(224, 232, 245, .52);
    font-size: .8rem;
}

.paper-empty {
    padding: 22px;
    border-radius: 17px;
    border: 1px dashed rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .02);
    color: rgba(224, 232, 245, .64);
    text-align: center;
}

.paper-position-card {
    padding: 19px;
    border-radius: 19px;
    border: 1px solid rgba(104, 227, 164, .16);
    background: rgba(8, 15, 25, .72);
}

.paper-position-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.paper-position-symbol {
    display: flex;
    align-items: center;
    gap: 10px;
}

.paper-position-symbol strong {
    font-size: 1.22rem;
}

.paper-direction {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
}

.paper-direction.call {
    color: #86f4bd;
    background: rgba(57, 191, 120, .12);
}

.paper-direction.put {
    color: #ff9ca8;
    background: rgba(216, 71, 94, .12);
}

.paper-position-state {
    color: #8ef2bb;
    font-size: .82rem;
    font-weight: 800;
}

.paper-contract-id {
    margin-bottom: 15px;
    color: rgba(224, 232, 245, .58);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.paper-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.paper-detail {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.paper-detail span {
    display: block;
    margin-bottom: 5px;
    color: rgba(224, 232, 245, .52);
    font-size: .74rem;
}

.paper-detail strong {
    color: #f5f9ff;
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.paper-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.paper-target {
    padding: 6px 9px;
    border-radius: 999px;
    color: #acdfff;
    background: rgba(73, 156, 220, .10);
    border: 1px solid rgba(91, 180, 245, .13);
    font-size: .75rem;
}

.paper-mark-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(224, 232, 245, .54);
    background: rgba(255, 255, 255, .025);
    font-size: .76rem;
    line-height: 1.6;
}

.paper-history-list {
    display: grid;
    gap: 8px;
}

.paper-history-row {
    display: grid;
    grid-template-columns:
        1fr 1.5fr .8fr .8fr .8fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .055);
    font-size: .82rem;
}

.paper-history-row strong,
.paper-history-row span {
    overflow-wrap: anywhere;
}

.paper-error {
    padding: 16px;
    border-radius: 14px;
    background: rgba(208, 63, 76, .10);
    border: 1px solid rgba(255, 109, 123, .16);
    color: #ffadb6;
}

@media (max-width: 980px) {
    .paper-metrics,
    .paper-detail-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .paper-history-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .paper-trading-panel {
        padding: 17px;
        border-radius: 19px;
    }

    .paper-panel-header {
        flex-direction: column;
    }

    .paper-metrics,
    .paper-detail-grid,
    .paper-history-row {
        grid-template-columns:
            1fr;
    }

    .paper-position-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ALBARON PAPER LIVE V2 R3 */
.paper-target.is-hit {
    font-weight: 800;
    border-width: 2px;
}

