.position-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.position-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.pos-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    position: relative;
    transition: color 0.2s ease;
}

.pos-tab-btn:hover {
    color: #cbd5e1;
}

.pos-tab-btn.active {
    color: #38bdf8;
}

.pos-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #38bdf8;
    border-radius: 2px;
}

.pos-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.pos-button-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pos-button-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.pos-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #182131;
    color: #f8fafc;
    border: 1px solid #26344b;
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pos-action-btn:hover:not(:disabled) {
    background: #26344b;
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-1px);
}

.pos-action-btn:disabled,
.pos-action-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #1e293b;
    background: #121826;
    color: #64748b;
    transform: none;
}

.pos-action-btn i {
    font-size: 11px;
}

.pos-layers-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.pos-layer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #182131;
    border: 1px solid #26344b;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pos-layer-item:hover {
    background: #202b3f;
    border-color: #3b82f6;
}

.pos-layer-item.is-selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.pos-layer-item.drag-over {
    border-top: 2px solid #38bdf8;
}

.pos-layer-item.is-dragging {
    opacity: 0.4;
}

.pos-drag-handle {
    color: #64748b;
    cursor: grab;
    padding: 2px 4px;
}

.pos-drag-handle:active {
    cursor: grabbing;
}

.pos-layer-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.pos-layer-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.pos-text-thumb {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.pos-layer-label {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-layer-check {
    color: #38bdf8;
    font-size: 14px;
}
