﻿:root {
    --pnl-w: 332px;
}

.pnl {
    position: relative;
}

.pnl-tab,
.pnl-panel,
.pnl-row,
.pnl-head,
.pnl-foot {
    box-sizing: border-box;
}

.pnl-tab {
    position: fixed;
    top: 50%;
    inset-inline-end: 0;
    transform: translateY(-50%);
    z-index: 1049;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 42px;
    padding: 16px 0;
    border: none;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
    border-start-start-radius: 13px;
    border-end-start-radius: 13px;
    cursor: pointer;
    box-shadow: -4px 6px 18px rgba(26, 115, 232, .30);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1), box-shadow .2s ease;
}

.pnl--ready .pnl-tab {
    display: flex;
    animation: ispFade .45s ease both;
}

.pnl-tab:hover {
    box-shadow: -6px 8px 24px rgba(26, 115, 232, .44);
}

.pnl-tab > i {
    font-size: 1rem;
}

.pnl-tab-label {
    writing-mode: vertical-rl;
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.pnl-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.92);
    width: min(var(--pnl-w), 88vw);
    max-height: 84vh;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: -14px 0 46px rgba(16, 42, 90, .18);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1), opacity .28s ease, visibility 0s linear .38s;
}

.pnl-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 42, 90, .35);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility 0s linear .28s;
}

.pnl--open .pnl-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .28s ease, visibility 0s linear 0s;
}

.pnl--open .pnl-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1), opacity .28s ease, visibility 0s linear 0s;
}

.pnl-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
}

.pnl-head-ic {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.pnl-head-txt {
    flex: 1;
    min-width: 0;
}

.pnl-head-kicker {
    font-size: var(--text-2xs);
    text-transform: uppercase;
    letter-spacing: .7px;
    opacity: .85;
}

.pnl-head-title {
    font-size: var(--font-lg);
    font-weight: var(--weight-heading);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pnl-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

    .pnl-close:hover {
        background: rgba(255, 255, 255, .32);
    }

.pnl-body {
    padding: 4px 18px 14px;
    overflow-y: auto;
}

    .pnl-body::-webkit-scrollbar {
        width: 6px;
    }

    .pnl-body::-webkit-scrollbar-thumb {
        background: #d7e3f4;
        border-radius: 3px;
    }

.pnl-altname {
    display: block;
    font-size: var(--font-sm);
    color: #64748b;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pnl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

    .pnl-row + .pnl-row {
        border-top: 1px solid #f1f5f9;
    }

.pnl-row-ic {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eef4fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

.pnl-row-txt {
    min-width: 0;
}

.pnl-row-label {
    font-size: var(--text-2xs);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
}

.pnl-row-value {
    font-size: var(--font-base);
    color: #1a1a2e;
    font-weight: 600;
    word-break: break-word;
}

@keyframes ispFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 575px) {
    .pnl-tab {
        width: 38px;
        padding: 13px 0;
    }

    .pnl-panel {
        max-height: 82vh;
    }
}
