/* ===== HEADER + USUARIO (MOBILE FIRST) ===== */

.op-header {
    height: 56px;
    padding: 0 12px;
    border-bottom: 1px solid #1f2933;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #020617;
    position: sticky;
    top: 0;
    z-index: 20;
}

.op-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.op-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.op-header-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Chip de usuario */
.op-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.op-user-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #1f2933;
    background: #020617;
    cursor: pointer;
    font-size: 12px;
}

.op-user-chip.active {
    border-color: #3b82f6;
}

.op-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.op-user-avatar.small {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.op-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.op-user-name {
    font-size: 13px;
    color: #e5e7eb;
}

.op-user-role {
    font-size: 11px;
    color: #9ca3af;
}

/* Dropdown usuario: fixed para móvil, ligero */
.op-user-dropdown {
    position: fixed;
    right: 12px;
    top: 64px;
    width: 220px;
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1f2933;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
    padding: 10px;
    display: none;
    z-index: 40;
}

.op-user-dropdown.show {
    display: block;
}

.op-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px 8px;
    border-bottom: 1px solid #111827;
}

.op-user-dropdown-name {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
}

.op-user-dropdown-role {
    font-size: 12px;
    color: #9ca3af;
}

.op-user-dropdown-item {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    text-align: left;
    background: #111827;
    color: #e5e7eb;
    cursor: pointer;
}

.op-user-dropdown-item:hover {
    background: #dc2626;
}

/* Desktop */
@media (min-width: 1024px) {
    .op-header {
        height: 64px;
        padding: 0 20px;
    }

    .op-header-title {
        font-size: 18px;
    }

    .op-user-dropdown {
        right: 20px;
        top: 72px;
    }
}
